Snippets: Hide Footer Callout For All Blog Archives & Posts


function my_hide_callout_on_blog_archives( $bool ) {
	if ( wpex_is_blog_query() || is_singular( 'post' ) ) {
		$bool = false;
	}
	return $bool;
}
add_filter( 'wpex_callout_enabled', 'my_hide_callout_on_blog_archives', 20 );

Snippet Type: PHP

Posted Under: Blog

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