terryds Posted August 8, 2013 Share Posted August 8, 2013 If i make a folder with index.php inside it and place it to the themes directory in Wordpress.... The admin panel detects that there is a new theme... How does it do that ? Can you tell me how to do that ? Link to comment Share on other sites More sharing options...
Mudsaf Posted August 8, 2013 Share Posted August 8, 2013 I guess there is some function that reads all folders with index file inside. Link to comment Share on other sites More sharing options...
justsomeguy Posted August 8, 2013 Share Posted August 8, 2013 There are several ways to read directories and files, this class is the preferred way: http://www.php.net/manual/en/class.filesystemiterator.php Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now