Alter The Portfolio Related Posts Heading
// Alter The Portfolio Related Posts Heading
function my_portfolio_related_heading_args( $args ) {
// Show different text for items in category "design"
if ( has_term( 'design', 'portfolio_category' ) ) {
$args['content'] = 'Custom heading';
}
// Return args
return $args;
}
add_filter( 'wpex_heading_portfolio_related', 'my_portfolio_related_heading_args' );
All PHP snippets should be added via child theme's functions.php file or via a plugin (we recommend Code Snippets)