Have you ever pushed out an update that included modifications to scripts or styles and then later had to tell someone to clear their cache or do a hard refresh in order to see the updates? There is actually a very simple way to avoid this scenario and force the browser to display the updated [...]
View PostUsing Ajax in Your Plugin and WordPress Admin
This video tutorial walks you through the process of using ajax in the WordPress admin within your own plugins. The end result of this tutorial is not a complete plugin, but it does show the entire process, step by step, of how ajax is utilized in the WordPress dashboard.
View Post add_options_page, Ajax, wp_enqueue_script, wp_localize_scriptLoading Scripts Correctly in the WordPress Admin
There has been a lot of talk over the last two days about loading scripts, particularly jQuery, correctly in WordPress themes and plugins, and anyone who follows me on Twitter probably knows that this is an issue I bring up a lot. When providing support for my plugins, I discover themes (and plugins) that are [...]
View Post admin_enqueue_scripts, jquery, wp_enqueue_script, wp_enqueue_scriptsWriting Your First WordPress Plugin Part 4
In part four of Writing Your First WordPress Plugin, I demonstrate how to load style sheets with your plugin. I also walk you through some best practices in terms of efficiency in regards to when you should, and should not, load styles/scripts with your plugin. This entry is part 4 of 7 in the Writing [...]
View Post add_action, CSS, wp_enqueue_script, wp_enqueue_style