Writing “clean” code is something we talk about a lot in software development. Developing for the web is no different in the pursuit of code that is “clean” than any other type of programming. It’s also something that you could write a book...
Read More The Fundamentals of Writing Clean CodeTag: php
Attaching Posts with CMB2 for WordPress
CMB2 creates metaboxes and forms with custom fields that will blow your mind. Attached Posts in an extension of this extremely useful plugin. Every once in a while you may find yourself needing to attach various pieces of content to various other pieces...
Read More Attaching Posts with CMB2 for WordPressRemoving PHP4 Compatibility in WordPress Custom Widgets
There I was. Working on adding PHP docblocks to widgets.php in /wp-includes, like you do, when I came across this: So I set about trying to figure out the appropriate @since parameter to use. Do I base the @since on when the...
Read More Removing PHP4 Compatibility in WordPress Custom Widgets