Snippets

Change the sort order of WooCommerce Grouped Products

May 6, 2015

WooCommerce has a small army of filters and hooks that you could customize almost every aspect of the plugin. If you have a grouped product the default display method is by menu_order. But recently, someone wanted to display the grouped items by the date they were published. This is very easily accomplished by filtering the…

Read More

Modifying the WooCommerce Product Query

January 18, 2015

I recently answered a few questions on Stack Overflow and they all seemed to related to how to change what products show up in the shop loop… or any other of the shop archives. I figured I would compile them altogether for reference and inspiration. WooCommerce builds a custom query for products in its WC_Query…

Read More

Custom styles for TinyMCE 4.0 in WordPress 3.9

April 30, 2014

The release of WordPress 3.9 saw the update of the included TinyMCE editor to version of 4.0 and this caused no small amount of havoc for people who’d been customizing the text editor. In the past, one was able to define one’s own custom styles and modify the block formats like so:

You’re a…

Read More