Snippets: Alter Search Results Page Header Title (Search results for….)

add_filter( 'wpex_title', function( $title ) {
	if ( is_search() ) {
		return 'Your Custom Text';
	}
	return $title;
}, 50 );

Snippet Type: PHP

Posted Under: Search

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