Setup a Local WordPress Development Environment on Docker

As I continue to explore Docker, this post will serve as my notes. I assume assume you already have the following technologies on your computer or know how to install them: Installation Clone WordPress: $ git clone [email protected]:WordPress/wordpress-develop.git Install dependencies: $ cd wordpress-develop && npm i Start Docker containers: $ npm run env:start Install WordPress:Continue reading “Setup a Local WordPress Development Environment on Docker”

Modify a Custom Post Type after it’s been registered

Today I was tasked with adding functionality to an existing custom post type. The problem was, the CPT was being registered in a plugin that I could not edit. After some digging, I found there’s a filter for that (found in post.php) that allows you to modify a custom post type after it’s been registered some otherContinue reading “Modify a Custom Post Type after it’s been registered”