Created
December 9, 2020 16:49
-
-
Save KaineLabs/73ba3d3577c83c29397199b92241d203 to your computer and use it in GitHub Desktop.
Translate Dynamic Words
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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