Snippets: Move WooCommerce Product Category Description Below Products

By default in the Total theme all category/term descriptions display in the main page header title area as the subheading. However, it's very easy to move. The following snippet can be used to move the category description for WooCommerce products from the subheading to below the products.

add_action( 'init', function() {

	// Disable subheading on product cats
	add_filter( 'wpex_post_subheading', function( $bool ) {
		if ( is_tax( 'product_cat' ) ) {
			$bool = false;
		}
		return $bool;
	} );

	// Display description below loop
	add_action( 'wpex_hook_content_bottom', function( $bool ) {
		if ( is_tax( 'product_cat' ) ) {
			wpex_get_template_part( 'term_description' );
		}
	} );

} );
All PHP snippets should be added via a child theme's functions.php file.