In this part of Plugin Development 101 we take a look at another of the most important tools plugin developers use every day: actions. Just like filters, the presence of actions throughout WordPress are one of the elements that make plugin development possible, so having a good understanding of what they are and how they [...]
View PostUsing pre_get_posts to Modify Queries for Meta Data and More
There are a lot of ways to query posts in WordPress and a lot of parameters you can use for pulling in just the data you want. For example, you can easily pull in just posts that are in category X, Y, or Z, and you can also just as easily pull in only posts [...]
View Post add_action, pre_get_postsLet’s Talk Extensible Code

A few weeks ago, I gave a presentation at WordCamp Kansas City titled “Modular Plugins”. The talk was focused on the idea of writing extensible code when building plugins. I’d like to continue a discussion of the same topic here.
View Post add_action, add_filter, apply_filters, do_actionCreate a Live Search in WordPress with jQuery and Ajax
A live search is a search form that displays the results for your search query as you type. When done right, they can be exceptionally nice to use, and going through the process of building one covers a lot of really important techniques that can be applied to many other areas as well. This in-depth [...]
View Post add_action, Ajax, jquery, search, wp_ajaxAdding Custom Fields to the Easy Digital Downloads Checkout
Easy Digital Downloads is a plugin I have been building for selling digital downloads through WordPress. It is completely free and very flexible. Due to a large number of actions hooks and filters, there are many ways that you can customize the plugin to best suit your needs. This tutorial will walk you through the [...]
View Post add_action, add_filter, easy digital downloadsCustom Front End Post Submission Form

In the Jobs Posting with Easy Content Types and Gravity Forms tutorial, we used Gravity Forms to create a submission form for users to post their job openings. In this tutorial, we are going to create our own custom submission form. While we will focus the form around job submission, the techniques used here apply [...]
View Post add_action, add_shortcode, update_post_meta, wp_insert_postGet 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, hookUser Submitted Image Gallery – Part 6
Part 6 of User Submitted Image Galleries will show you how to setup the single image page that shows the details for a particular image. This section is not very complex, but it covers a few very important techniques that are really good to know when it comes to modifying information on post templates via [...]
View Post add_action, add_filter, attachment, dashboard, gallery, the_contentAdd Custom User Meta Fields to Restrict Content Pro Registration
Restrict Content Pro is my premium content plugin that makes it very easy to sell subscriptions to your WordPress website. It is the plugin that powers the subscription system to this site. This subscribers’s only tutorial is going to walk you through the process of adding new form fields to the registration form, and then [...]
View Post add_action, get_user_meta, restrict content pro, update_user_meta- 1
- 2

