How to Make WP_Query Arguments Filterable

The WP_Query class is very powerful. It lets you create your own custom queries to run anywhere in your WordPress site – in the main content, in the sidebar or anywhere else you like. It’s something I use a lot, either in custom template files or in areas outside the content such as the sidebar […]

Unit Testing WordPress Plugins with PHPUnit

When you’re working on plugins and you start introducing new functionality, it’s good practice to ensure the existing logic isn’t broken. Without proper testing, the chances are high that simple fixes may snowball into a spaghetti coding nightmare. So in today’s article, I’ll show you how to take advantage of unit testing for your WordPress […]