I regularly work with many WordPress plugin codebases. This means that my wp-content/plugins/ directory is full of individual Git repositories. Of course, there are also some plugins that are not Git repositories. I regularly use hub to enhance my Git command line experience. I found myself wanting to synchronize all of these repos in one [more…]
These posts are meant to be quick ideas that I may want to explore later, whether as a blog post or a project.
I’ve written previously about developing on WordPress trunk using Valet+. Sometimes, I really just need to spin up a local site without the full trunk setup. Steps (Requires Valet+ and WP CLI, as well as an existing wp DB user with a password of wp) cd ~/Sites/ mkdir wp cd wp wp core download valet [more…]
When writing code for WordPress plugins, one of the things that you need to do is to hook everything into the appropriate WordPress hooks. When working with OOP code, this typically means that each class is responsible for its own hooks. The result of this is that each class needs to be instantiated so that [more…]