Knowing what your users are searching for can be extremely useful and important. In this members-only tutorial we’re going to look at how to create a simple search logging plugin that will record every search query performed on your site. We will be using the WP_Logging class that I released a week or two ago [...]
View PostAdd 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_sizeUsing 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_postsIntroduction to the gettext Filter in WordPress
The gettext filter gives us a really easy way to change text anywhere in our WordPress install, including plugins and themes, without ever changing any of the original code. It is a great way to easily customize labels, headings, button text, and any other text we wish to change.
View Post add_filter, gettext, localizationLoading 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_scriptsPlaying Nice with the “the_content” Filter
One of the very first things people tend to learn when writing plugins is how to attach custom HTML to the bottom of their WordPress posts using the filter called “the_content”. This is good, as it is an extremely useful filter, but rarely do tutorials really explain how to use this filter well, and how [...]
View Post add_filter, the_contentAdding 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 downloadsAdd Custom Links to User Row Actions
While working on a user badge system for the CG Cookie network, I came across the need to add a custom link to the action links, such as Edit and Delete, present for each user on the WordPress Users page. After a quick google search, I was able to find a simple filter than can [...]
View Post add_filter, page_row_actions, post_row_actions, user_row_actionsAdd Screen Options Tab to Your WordPress Plugin

You have probably noticed the Screen Options tab in the top right corner of many WordPress admin pages. This tab brings down a configuration panel that you can generally use to control what elements are displayed on the current amin page. One of the really great things about the Screen Options tab is that which [...]
View Post add_filter, add_screen_option, Chris Marslender, get_current_screenWordPress Rewrite API – Part 3
In part 3 of the WordPress Rewrite API series, we will be covering adding custom endpoints to specific places of your blog content. Endpoints are extremely powerful, and in this case, they will allow us to enable AJAX in the default theme WordPress (Twenty Eleven), so that when loading a post or page, it’s all [...]
View Post Abid Omar, Ajax, endpoint