function ee_custom_messaging_changes( $translated, $original, $domain ) {
$strings = array(
'upcoming' => 'Próximamente',
'Upcoming' => 'Próximamente',
);
if ( isset( $strings[$original] ) ) {
$translations = get_translations_for_domain( $domain );
$translated = $translations->translate( $strings[$original] );
}
return $translated;
}
add_filter( 'gettext', 'ee_custom_messaging_changes', 10, 3 );
-
-
Save anonymous/213620bf64c3f42ebd716f46d29b0cf2 to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment