WordPress plugin

Base code for a WordPress plugin using PHP namespaces

I provide a free public Github repository containing example code for starting work on a WordPress plugin, which uses PHP namespaces.

Handling file requests with the WordPress Rewrite API

I occasionally have a need to divert file requests on a website to a PHP script. By doing so, I can determine whether the visitor may access it, see whether an image should have a watermark automatically applied, or notify an administrator that a PDF has been viewed or downloaded. The easiest way to do… (Read More)

An easy introduction to WordPress plugins with PHP classes

There are many copy-and-paste examples of how to write your own functions and apply them through WordPress’ hooks and actions. But with a little simple knowledge of PHP’s namespace syntax, developers who regularly work on WordPress projects can make their lives a lot easier, whilst making their code much more robust, portable and secure. The first thing to… (Read More)

WordPress plugin to get rid of the need for CAPTCHA images

“Comment spam” is a term which relates to automatically-generated website comments. People with too much time on their hands make software to submit to websites like mine. It’s then down to me to ensure that the nonsensical or downright abusive comments don’t appear on my website, and that my email inbox doesn’t get swamped with… (Read More)

Adding a post thumbnail to the WordPress backend list view

In an effort to share more of my work with the open source community, I’m gradually starting to submit more plugins to the WordPress Plugin Directory. The latest addition, approved recently and made public today, is a plugin which extends the backend list view with a small thumbnail-sized preview of the post thumbnail (where one is… (Read More)

Flickr settings fields plugin for WordPress

A technical goal for 2016 is to make more WordPress plugins, and to submit them to the official WordPress plugin repository, so that other users can benefit from them. The next addition to the set of plugins I’ve contributed is a simple one to add fields to the Settings » Media screen in the WordPress backend for Flickr… (Read More)

Two new plugins published for WordPress

I finally got around to reading the submission details for the official WordPress Plugin directory this week and submitted a couple of simple plugins. They have now been approved and are available for free to anyone using WordPress.