Switching from Vagrant to Docker for WordPress Development

These past few weeks I’ve been experimenting with Docker as an alternative to Vagrant (and VVV) for WordPress development. I had looked into Docker in the past, but given how easy Vagrant and VVV were, I was in no hurry to switch. VVV still is awesome (there is an excellent getting started guide here), butContinue reading “Switching from Vagrant to Docker for WordPress Development”

The process of building a plugin (a one day challenge)

Building plugins is fun, especially the smaller ones. Today I thought it would be a good challenge to build one whilst documenting the process; I’m actually writing this post as I plan and build the plugin itself with the hope of having it finished by the end of the day. What am I building? AContinue reading “The process of building a plugin (a one day challenge)”

Plugin development and the fear of change

Yesterday I was taken off guard with a comment/concern from an anonymous WooCommerce developer named “Jonathan”. Jonathan was annoyed at upcoming changes in the core WC plugin: Mike, one thing that strikes me about WC as compared to WP is stability of maintstay features and code structures. Notice that WP rarely breaks a site. HeContinue reading “Plugin development and the fear of change”

Sensible script enqueuing for shortcodes

If you are making a WordPress plugin which uses a shortcode, and said shortcode needs some Javascript enqueued in order to function, it may be tempting to just whack the script in the wp_enqueue_scripts hook and be done with it. add_action( ‘wp_enqueue_scripts’, ‘enqueue_my_script’ ); function enqueue_my_script() { wp_enqueue_script( ‘script-name’, plugins_url( ‘/js/script.js’ , __FILE__ ), array(),Continue reading “Sensible script enqueuing for shortcodes”