Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 6035
28 votes
Accepted

Add multiple plugin directories

$dir is either a full path or something relative to the wp-content directory. $label is going to be for our display in the admin area (eg. a translatable string). <? … Basically: get the directory from the $wp_plugin_directories global, open it, find all the plugin files. Store them in the cache for later. <? …
chrisguitarguy's user avatar
8 votes

How to structure a plugin

So, a directory structure might look like this: my-plugin/ inc/ lib/ admin/ templates/ css/ js/ images/ lang/ my-plugin.php readme.txt …