Snippets: Move Custom Taxonomy Term Description

By default the term description displays as the "subheading" below the main title. You can use this function if you with to move the term description for any taxonomy to be above the posts. This is useful if you have very long descriptions or you are using custom HTML in this area.

add_filter( 'wpex_has_term_description_above_loop', function( $bool ) {
	if ( is_tax( 'your_taxonomy_name' ) ) {
		return true;
	}
	return $bool;
} );

Snippet Type: PHP

All PHP snippets should be added via a child theme's functions.php file or via the Code Snippets Plugin (or alternative plugin)