Add User ID Column to the WordPress Users Table

Being able to quickly find the unique ID number of any user in your WordPress database can be very useful, especially if you run a website with lots of users. One of the ways that we can easily find a user’s ID is by customizing the table displayed on the wp-admin/users.php page. We can add…

Display Messages in the Dashboard with Admin Notices

Ever noticed the messages WordPress displays when you activate a plugin, or save settings? Or the messages that some plugins show in the dashboard, perhaps notifying you of a missing requirement? These are called Admin Notices and I’m going to show you how to add your own in your plugin or theme. They’re really quite…

Localizing and Translating WordPress Plugins

In order to be kind to our friends that do not speak the language we have written our plugin in, it is always a good idea to fully localize your WordPress plugin. This means make it “ready for translation”. If you are one of those that is blessed with the fluency of more than one…

Write an Advanced Maintenance Mode Plugin

This tutorial explains the process behind writing a Maintenance Mode plugin for WordPress such as the one I released a few days ago: CGC Maintenance Mode. The final result of this tutorial will give you an advanced plugin capable of putting your site into maintenance mode, while allowing authorized users to view the site normally,…

Writing Your First WordPress Plugin Part 4

In part four of Writing Your First WordPress Plugin, I demonstrate how to load style sheets with your plugin. I also walk you through some best practices in terms of efficiency in regards to when you should, and should not, load styles/scripts with your plugin. This entry is part 4 of 7 in the Writing…

Writing Your First WordPress Plugin Part 3

In part 3 of this tutorial series, I describe a couple of fundamental techniques for beginner WordPress plugin developers. This section details a very important function for WordPress plugins: how to add any kind of content to the end of a post. I show how it is done, and then also demonstrate some real world…

Structuring Your First WordPress Plugin

Knowing how to best structure your plugin is very, very important to the success and quality of your plugin. You should spend several minutes laying out the structure of your plugin before you ever begin writing it. This part of the Writing Your First WordPress Plugin series will walk you through the process of laying…