开发者

Wordpress Custom Options In Admin Area

开发者 https://www.devze.com 2022-12-16 23:04 出处:网络
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

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

0

精彩评论

暂无评论...
验证码 换一张
取 消