One of the challenges you will run into, when developing for WordPress, is finding a way to make your data (which is accessed via PHP) available to your scripts. For example, you might have a popup notification that is displayed when someone clicks a button. The message in this popup, in order to be translatable, [...]
View PostHome» Posts tagged "Scripts"
Load Scripts on Plugin Pages Only
Posted on
by
Pippin
in
Intermediate, Quick Tips, Tutorials, Working with jQuery, Writing Plugins
3 Comments
Loading scripts, CSS and jQuery, within a plugin for use on admin pages is one of the most common areas that developers make mistakes. If you plugin’s administrative pages require any scripts that are not already loaded in WordPress by default, you should always ensure that those scripts are only loaded on your plugin’s page, [...]
View Post CSS, jquery, Scripts