skip to Main Content

Remove Portfolio Category and Tag Descriptions

function myprefix_remove_portfolio_category_description( $subheading ) {
	if ( is_tax( 'portfolio_category' ) || is_tax( 'portfolio_tag' ) ) {
		return false;
	}
	return $subheading;
}
add_filter( 'wpex_post_subheading', 'myprefix_remove_portfolio_category_description' );
All PHP snippets should be added via child theme's functions.php file or via a plugin (we recommend Code Snippets)
Back To Top