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 PostUse TidyPHP with Sublime Text 2 for Lightning Fast Formatting
Writing clean code is something you should always strive for in your WordPress projects, and you should always do what you can to adhere to the WordPress Coding Standards. I tested out a really awesome tool today that you should seriously consider adding to your workflow if you are a Sublime Text 2 user.
View Post Sublime Text 2Add Custom Image Sizes to Media Uploader
One of the most useful functions to both theme and plugin developers, when it comes to working with images, is add_image_size(), which allows you to create additional automatically generated image sizes to the WordPress image upload process.
View Post add_image_sizeGet the Name of the Current Action or Filter
After watching a Twitter discussion this morning (shown in the image below), Helen Hou-Sandi, a WordPress developer and core-committer mentioned a function I had never heard of that can be used for finding the name of the current action or filter hook. It is called current_filter() and is extremely useful. Check out the snippets below [...]
View Post add_action, add_filter, current_filterDetect when an Action has Run with did_action
Some hooks get fired more than once, meaning that functions connected to those hooks are ran multiple times. This causes problems with some functions when they are designed to only be run once. If you have a function that is connected to an action hook, and you need to ensure it only ever runs once, [...]
View Post add_action, did_action, hookRemoving “Restrict This Content” Meta Box in Restrict Content Pro
When using Restrict Content Pro, the “Restrict this Content” meta box is automatically loaded on all registered post types, but sometimes you want to remove it from certain post types. The plugin includes a simple filter that you can use to specify which post types the meta box should not be added displayed on. This [...]
View Post add_filter, meta box, restrict content proCheck for Existence of Action Hook

Action hooks allow us to make our plugins much more extensible, and some times we need to be able to check whether a hook exists, or has been registered. We might need to check that a hook exists for a variety of reason, and thankfully WordPress gives us a really easy way to do that. [...]
View Post add_action, do_action, has_actionIntroduction to Using Nonces for Form Validation
Nonces are used to add an extra layer of security to WordPress. They are typically used when submitting form data to ensure that the form is being submitted from where it’s supposed to. Nonce fields help us protect our forms from malicious attacks and non-authorized submissions. This tutorial will introduce you to using nonces in [...]
View Post forms, nonce, securityCheck if Theme Supports Post Thumbnails
A lot of plugins use the Featured Image feature for showing post thumbnails. My Better Recent Posts Widget Pro is a perfect example. It uses the Featured Image to display small thumbnails of the recent posts in widget areas. There’s one problem though. This feature only works if the currently active theme supports post thumbnails. [...]
View Post featured image, has_post_thumbnail, imageAdd Menu Links to the New WordPress 3.3 Tool Bar
The new admin bar, now named the tool bar, in WordPress 3.3 is great. It’s really well organized and cleans the dashboard up a lot. It’s also great for developers because adding new links to settings pages, documentation, or other useful links, is quite simple. In this quick tip, I’m going to show you how [...]
View Post add_menu, admin_bar_menu, admin_menu, toolbar