Problem: I want my application to work on all the environments I claim to support but I have no way of easily testing updates in each environment. Bad Solution: Continuously push to your remote to force Travis CI to test changes in multiple environments. Good Solution: Containerized unit testing with Dockunit. Dockunit is a simple [...]
In 2009-2010 Custom Contact Forms was one of the first WordPress plugins I wrote. The purpose of the plugin was to solve a simple problem: easy contact form building on the web. As I was building the plugin, WordPress 3.0 had not yet been released, and therefore custom post types and other useful API’s did [...]
WordPress cron is a confusing beast. Most people don’t understand it or intentionally use it. It is not the same technology as Unix cron. Scheduled post functionality actually depends on WordPress cron. By default on every page load, WordPress checks to see if any cron events are due to fire. If an event is due, [...]
Backbone is framed around the assumption that your models and collections are backed by RESTful API’s. If this isn’t the case, life becomes difficult. WordPress provides an AJAX API for backend AJAX requests. These requests are sent through admin-ajax.php which is not RESTful. I’ve written some code to force Backbone models and collections to play nicely [...]
The past few months I’ve had the opportunity to work on the new JSON REST API for WordPres. My biggest contribution as a WP API team member has been the Backbone client. The JSON REST API’s Backbone client let’s you interact with a WordPress installation using Backbone.js collections and models. The client is an extremely [...]
Sign up for the latest WordPress tricks, tips, tutorials, and offers from the people who write the software.