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.

25th November 2016 | Read more »

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.

20th October 2016 | 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…

7th September 2016 | 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…

1st April 2016 | 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…

1st April 2016 | 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…

26th March 2016 | Read more »