Snippets: Disable Related Portfolio Item Excerpt (PHP)

function my_related_portfolio_excerpt_length( $length ) {
	if ( is_singular() ) {
		$length = '0';
	}
	return $length;
}
add_filter( 'wpex_portfolio_entry_excerpt_length', 'my_related_portfolio_excerpt_length' );
All PHP snippets should be added via a child theme's functions.php file.