
Recursively make directories in PHP using mkdir
05/03/2021Need to make a directory in PHP? No Problem! mkdir has you covered... Need to recursively make directories in PHP? mkdir has you covered, too!
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!
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.
Learn how to regenerate and update WordPress media and image sizes both programmatically (without plugin), and also with a handy plugin.
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.
Ever seen constants like __DIR__ and __FILE__ being used in PHP? These are 'Magic Constants', and this is how we can use them.
The WordPress REST API is an incredibly useful and flexible tool. Find out how to expose additional fields in this article.
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.
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.