Removing all emoji code from a ClassicPress site

Here’s a quick tip for ClassicPress theme developers. If you want to remove all trace of the WordPress/ClassicPress built-in emoji scripts, styles and tags from your ClassicPress site’s pages, here… More »

Detecting https in PHP – the definitive guide

Detecting whether your PHP code is running on https or http is useful in a number of situations, particularly if you’re building a URL to set a form action or… More »

Swap two variables in PHP

A very simple post, with a very simple solution to a very simple problem. Sometimes you will need to swap two variables around, perhaps if you have a form that… More »

WordPress 4.7.4 and the ‘noopener noreferrer’ attribute

Some of you may have noticed that after you upgrade to WordPress 4.7.4, when you edit a post using the visual editor tab and add an internal link (a link… More »

Connecting to Let’s Encrypt SSL sites via cURL from MAMP

This is a brief lesson in diagnostics that some may find helpful. The Scenario I develop websites on a Mac running MAMP. On my Mac I have an installation of… More »

How to disable responsive images in WordPress 4.4

The latest version of WordPress, 4.4 (“Clifford”), has rolled out a feature whereby it adds ‘srcset’ attributes to all image tags in order that browsers can decide which image to… More »

Deploying a WordPress site to a staging or live server

A WordPress developer’s workflow will at some point involve migrating a site that has been developed on a local computer to a live or staging server. The process for a… More »

Include WordPress environment in a plain PHP page

There comes a time for most serious WordPress developers when they are developing a WordPress site but need a separate PHP page which needs to access WordPress variables, functions and… More »

All About SMTP in WordPress

No matter what I’m doing, whatever site I’m building or managing, on whatever server, it’s always automated emailing that has given me the most hassle over the years. Here’s a… More »

Bug in WordPress custom role creation

After some slightly off-topic posts, we’re back to the ins and outs of developing with WordPress. I needed some custom roles, each with a number of custom capabilities, for a… More »