Recently, I’ve been putting a lot of time and effort into leveling up my PHP skills. When my last round of leveling up began, I knew a good bit of basic-to-advanced PHP. The thing was, I had come to the realization that I simply felt comfortable with my level of proficiency. Once I realized this, […]
Using the autoloading feature of PHP gives us cleaner code and less worry, not to mention it encourages better organization of our files.
This is a story about how my own code broke a site in development after migrating from PHP 5 to PHP 7, and what I did to fix it. On December 3 2015, PHP 7 was released. Along with significant speed increases, there were some breaking changes that make it not 100% backward compatible with […]
Hooks (actions and filters) are a developer’s best friend in WordPress. WordPress core offers us a very wide range of opportunities to execute our own functions at key times, and also to modify key pieces of data being utilized to render our web pages. In a similar manner, we can create our own actions and […]
In WordPress, custom post types are what let us break our content free from the world of Pages and Posts (and do lots of other cool stuff). In a nutshell, post types empower us to organize/structure our site data and front end views in a way that can be as unique as we like. I […]
OK, so it’s technically impossible to extend WP_Post. Big deal. Still, I’m thinking a lot about how I might go about extending WP_Post for my own purposes; and I’m experimenting with classes that “kind of” extend WP_Post, because the class is not going to be final forever. In a Trac ticket from 2013, we have […]
Some time in the 1800’s, Augustus De Morgan published a piece of logic that others had felt intuitively for centuries, and which still comes into play today on a fundamental level in areas like math and computer programming. Consider the statement “It is hot and humid outside.” What would it take for this sentence to […]
The Members WordPress plugin by Justin Tadlock is an incredible tool for revealing the underbelly of user roles and permissions on your WordPress site. Until I discovered this plugin, my concept of user roles was completely tied up in my code. But with Members, we get an intuitive and comprehensive UI for managing the various […]