Wordpress Custom Options In Admin Area
I would like to create an custom option so that the user in the admin area could be able to select a alternative css that I will provide. I have made a custom page using the add_menu_page
function in the functions.php.
How could I retrieve all the .css files contained in the directo开发者_运维问答ry "/css" to make it easier for the user?
There's a good codex page on creating admin options pages:
http://codex.wordpress.org/Creating_Options_Pages
Use dir
to get a list of all the css files:
http://php.net/manual/en/class.dir.php
精彩评论