
Move up directory levels relative to the current file in PHP
17/02/2021Need 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.
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.