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.
Posts in this category:
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.