Quick text change

This method is NOT recommended, however, it can allow you to quickly change some text on your site without having to go through the whole translation process.

For multiple text changes, we suggest that you use a translation file. Translations can be used not only for "translations" but also to change multiple texts in the same language.

The below example code snippet will change the help text for the "Set Address on Map" button on the add listing page:

add_filter( 'gettext', '_my_quick_text_change', 20, 3 );
function _my_quick_text_change( $translated_text,  $untranslated_text, $domain ){
	// Change the help text of the "Set Address on Map" button
	if(  $untranslated_text == 'Click on "Set Address on Map" and then you can also drag map marker to locate the correct address'){
		$translated_text = 'Drag the map/marker or click this button to set the address';
	return $translated_text;
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us