Ideal location of plugin files
-
The wordpress codex indicates that plugins should exist as one file within /wp-content/plugins/ and that extra files should exist inside /wp-content/
I am writing a plugin that, for clarity, contains user-defined functions in a separate file. Should this be placed in wp-content and, if so, how is it then best to include() the file from the plugin? Using a relative path such as include(../user_funcs.php); ?
The codex isn’t very clear on what you SHOULD do, just what you shouldn’t do, if someone could clear this up for me it would be greatly appreciated!
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Ideal location of plugin files’ is closed to new replies.