Hi, I would like to translate my login page:
http://pttraining.decorolux.com/login/
function my_custom_login_label( $translated_text, $text, $domain ) {
if (in_array( $GLOBALS[‘pagenow’], array( ‘wp-login.php’, ‘wp-register.php’ ) )) {
if ($translated_text === ‘Username or email’) $translated_text = ‘Felhasználónév vagy jelszó’;
if ($translated_text === ‘Password’) $translated_text = ‘Jelszó’;
if ($translated_text === ‘← Back to %s’) $translated_text = ‘← YOUR TEXT’;
return $translated_text;
}
}
add_filter( ‘gettext’, ‘my_custom_login_label’, 20, 3 );
I found this code, but it doesnt do the trick. Could you help?
Thanks!