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…]
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 been using Keybase.io (you can find me there as JPry) for a little while now, and it occurred to me that I really should be signing my commits with Git. So last week I decided to set that up, and it was easier than I expected. This is the short version of what I [more…]
I’ve posted before about using hooks in WordPress. I think it would be good to write a more advanced post on the topic, including things such as: Why you usually shouldn’t use anonymous functions (aka “Closures”) attached to hooksWhy you sometimes should use anonymous functions attached to hooksBest practices for using hooks with class objects Somewhat [more…]