Contact!

PHP

Posts in this category:

Recursively make directories in PHP using mkdir

Recursively make directories in PHP using mkdir

by Gav 05/03/2021

Need to make a directory in PHP? No Problem! mkdir has you covered... Need to recursively make directories in PHP? mkdir has you covered, too!

Create custom image and thumbnail sizes in WordPress

Create custom image and thumbnail sizes in WordPress

by Gav 28/02/2021

Let's look at how to create and register our own custom image and thumbnail sizes and use them within our WordPress posts and pages.

Regenerate WordPress media image sizes, programmatically

Regenerate WordPress media image sizes, programmatically

by Gav 25/02/2021

Learn how to regenerate and update WordPress media and image sizes both programmatically (without plugin), and also with a handy plugin.

Move up directory levels from the current file in PHP

Move up directory levels relative to the current file in PHP

by Gav 17/02/2021

Need to find a directory path relative to your current file? This is how we use dirname() and realpath() to move up directory levels in PHP.

Magic Constants in PHP. What they are and how to use them.

Magic Constants in PHP. What they are and how to use them

by Gav 15/02/2021

Ever seen constants like __DIR__ and __FILE__ being used in PHP? These are 'Magic Constants', and this is how we can use them.

wordpress

Adding fields to the WordPress REST API

by Gav 17/04/2019

The WordPress REST API is an incredibly useful and flexible tool. Find out how to expose additional fields in this article.

wordpress

Object oriented plugin skeleton for WordPress

by Gav 15/04/2019

This tutorial will show you how to build a WordPress plugin in an object oriented way and provide you with a basic skeleton for future plugin projects.

Comments

Adding comments to a WordPress theme template

by Gav 19/10/2018

Ever wondered how to add comments to a WordPress theme template? It is a lot easier than you might think. This guide will help you get quick results.

;