Skip to content

Instantly share code, notes, and snippets.

@KaineLabs
Created December 9, 2020 16:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KaineLabs/73ba3d3577c83c29397199b92241d203 to your computer and use it in GitHub Desktop.
Save KaineLabs/73ba3d3577c83c29397199b92241d203 to your computer and use it in GitHub Desktop.
Translate Dynamic Words
<?php
/**
* Translate Dynamic Words
*/
function yzc_translare_dynamic_words( $value ) {
if ( defined( 'ICL_LANGUAGE_CODE' ) && 'hr' == ICL_LANGUAGE_CODE ) {
return 'new_word_for_hr_language';
}
return $value;
}
add_filter( 'option_yz_login_lostpswd_title', 'yzc_translare_dynamic_words' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment