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…]
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 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 hooks Why you sometimes should use anonymous functions attached to hooks Best practices for using hooks with class [more…]
Note: the following example is wrong*. Do not do it! I often see code like the following: I want to explain the proper way of manually running shortcodes using PHP. *Ok, it’s not strictly wrong, it’s just not the best solution all the time.