Snippets: Customize Your Search Placeholder Text

// Alter header menu searchform placeholder text
add_filter( 'wpex_get_header_menu_search_form_placeholder', function() {
	return __( 'Your custom text', 'Total' );
} );

// Alter core searchform placeholder (such as sidebar widget)
add_filter( 'wpex_search_placeholder_text', function() {
	return __( 'Your custom text', 'Total' );
} );

Snippet Type: PHP

Posted Under: Search

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