User Follow System – Part 6

In part 5 of this tutorial series we wrote the Javascript that is responsible for firing off the ajax events when a user is followed or unfollowed. Now, in this part, we are going to write the PHP side of the ajax events that takes care of processing the requests and sending a response back…

Plugin Development 101 – Intro to Actions

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…

Let’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.

Create 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…

Adding 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…

Get 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…

Detect 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,…

User 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…

Check 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.…

Quick Introduction to Action Hooks

Action hooks are used in WordPress to perform functions, or “actions”. They are used throughout many plugins and themes to provide an easy way for users of the theme or plugin to modify the output or the way it functions. This quick tutorial will give you a good introduction into how action hooks work.