Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: Editing the ‘Oh bother!’ Message

@robin-w

Moderator

Put this in your child theme’s function file – or use

Code Snippets

//This function changes the text wherever it is quoted
function change_translate_text( $translated_text ) {
	if ( $translated_text == 'old text' ) {
	$translated_text = 'new text';
	}
	return $translated_text;
}
add_filter( 'gettext', 'change_translate_text', 20 );

and change the old text and new text to suit.

Skip to toolbar