Snippets: Conditionally Show/Hide The Footer Callout

function my_callout_visibility( $bool ) {

	// Hide on the front page
	if ( is_front_page() ) {
		$bool = false;
	}

	// Return boolean
	return $bool;

}
add_filter( 'wpex_callout_enabled', 'my_callout_visibility', 20 );

Snippet Type: PHP

Posted Under: Core

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