User Submitted Image Gallery – Final Overview

We covered a lot of information in the User Submitted Image Galleries tutorial series, everything from registering our post types and custom taxonomies to performing advanced queries; from uploading images on the front end to configuring the backend; from outputting our images in a gallery to displaying additional images by the same user. There were…

User Submitted Image Gallery – Part 8

In this final part of the User Submitted ImageGallery tutorial series, we will look at adding just a couple more features to our gallery system. We are going to add the ability to view all images by a particular user. This will be done by clicking on the name of the author when viewing a…

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…

User Submitted Image Gallery – Part 7

Part 7 of our User Submitted Image Gallery tutorial series is going to demonstrate how to customize the dashboard columns of our image post type, and also how to add a new widget to our dashboard that displays the latest pending image submissions. In this part we are really focusing on two customizations to the…

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

WordPress Rewrite API – Part 2

Last time, we covered some of the basics and fundamentals of the Rewrite API in WordPress. In this tutorial, we’ll cover more about these APIs see how to use them to build something more practical. This entry is part 2 of 3 in the WordPress Rewrite API Series

WordPress Rewrite API – Part 1

The Rewrite API for WordPress is one of the most overlooked features, yet it provides some unparalleled functionality that drastically improves user experience. This tutorial aims to help you understand how the WordPress URL Rewrite engine works and the different uses of this API. This entry is part 1 of 3 in the WordPress Rewrite…