Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
function wp_travel_custom_gettext_string_editor( $string ){
switch ($string) {
case '%s Day(s) %s Night(s)':
return '%s Hour(s) %s Minute(s)';
break;
case 'Day(s)' :
return 'Hour(s)';
break;
case 'Night(s)' :
return 'Minute(s)';
break;
case 'Day(s):' :
return 'Hour(s):';
break;
case 'Night(s):' :
return 'Minute(s):';
break;
}
return $string;
}
add_filter( 'gettext', 'wp_travel_custom_gettext_string_editor', 30 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.