Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
271 B
2
Indexable
Never
add_filter( 'get_search_form', function( $form ) {
	if ( is_admin() ) {
		return $form;
	}

	$new_text = "Change this Text";

	$form = str_replace( 'placeholder="Search …"', ( 'placeholder="' . esc_attr( $new_text ) . '"' ), $form );

	return $form;
} );