Snippets: Conditionally Show/Hide Footer Widgets

add_action( 'wpex_display_footer_widgets', function( $bool ) {

	// Hide for all blog related queries and single posts
	if ( is_singular( 'post') || wpex_is_blog_query() ) {
		$bool = false;
	}

	// Return boolean
	return $bool;

} );

Snippet Type: PHP

Posted Under: Footer

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