css/js includes best practice for plugin (developing my own plugin)
-
Hello –
Sorry if this is the wrong place to post, please move if it is.
I’m starting to get into plugin development for WordPress and would like to know if anyone has a recommendation for how to go about loading CSS/Javascript files for the following scenarios:
1) Any files I feel should always be loaded as long as the plugin is active.
2) Any files that should only be used for the pages used to manage plugin settings.
3) Any files that should be loaded for a specific page/content piece. I.E. Include a css file and js file wherever a certain form generated by the plugin is displayed.
Thanks in advance.
The topic ‘css/js includes best practice for plugin (developing my own plugin)’ is closed to new replies.