Skip to content

Snippet: Conditionally Alter The Callout Content

add_filter( 'totaltheme/footer/callout/content', function( $content ) {

	// Alter content for the portfolio posts.
	if ( is_singular( 'portfolio' ) ) {
		return 'MY CUSTOM CONTENT';
	}
	
	// Return content.
	return $content;
} );
All PHP snippets should be added via child theme's functions.php file or via a plugin. We recommend Code Snippets (100% Free) or WPCode (sponsored)
Back To Top