I think we can all agree that unit testing is pretty neat. An automated system for checking if your code changes break any functionality is almost magic, and if you aren’t sure where to get started with it, you should read my previous...
Read More Unit Testing Your Plugins with DockunitAuthor: Camden Segal
Making a Plugin the WebDevStudios Way
We make a lot of plugins at WebDevStudios. Whether adding functionality to client projects, creating open source plugins to give back, or developing premium products, we are always spinning up new plugins. To speed up this process, we created generator-plugin-wp, a Yeoman generator which streamlines all...
Read More Making a Plugin the WebDevStudios WayDebugging JavaScript Events: Why Does It Do That When I Click This?
Sometimes things happen on a page that you can’t figure out. You click on a link and nothing happens; you submit a form and a modal pops up. Something is happening in JavaScript, but you can’t figure out where.
Read More Debugging JavaScript Events: Why Does It Do That When I Click This?Recent Changes to generator-plugin-wp
I last went over the features of generator-plugin-wp in May and a lot has changed since then! There are three more sub-generators (and more on the way), the JavaScript workflow is improved, PHPUnit tests are built in for the main plugin generator and all...
Read More Recent Changes to generator-plugin-wpModernize Your WordPress JavaScript
Not too long ago, I walked through the basics of using Browserify to organize and improve your JavaScript. Let’s build on that and take it to the next level while smoothly integrating with WordPress’ built-in JavaScript interface.
Read More Modernize Your WordPress JavaScriptHow To Make a Custom Field For CMB2
CMB2 is pretty much the best. It makes it super easy to add fields all over your site and it comes with a ton of useful fields by default. There are also a ton of community made fields out there for extending it with...
Read More How To Make a Custom Field For CMB2Get a Plugin Kickstart with Yeoman & generator-plugin-wp!
Getting started on a new project is always exciting, but it often includes a lot of repetitive work, such as setting up the basics of your code that you need for any plugin, or downloading a boilerplate and filling in your project’s details. Yeoman...
Read More Get a Plugin Kickstart with Yeoman & generator-plugin-wp!Using Browserify with JavaScript (and Keeping Yourself Sane!)
Working with code in the browser is a challenge. Not only do you need to manage the disparate behaviors of a variety of browsers and navigate the sometimes treacherous waters of JavaScript’s functional programming logic, but managing a wide array of dependencies and...
Read More Using Browserify with JavaScript (and Keeping Yourself Sane!)Debugging with Xdebug, VVV, and Sublime Text
ARE YOU READY TO TAKE YOUR DEBUGGING TO THE NEXT LEVEL?! ARE wp_die AND print_var JUST NOT CUTTING IT!? XDEBUG IS THE ANSWER! Xdebug is a PHP extension that provides advanced debugging capabilities such as breakpoints, watch expressions, and more in-depth error reporting.
Read More Debugging with Xdebug, VVV, and Sublime Text