Using gettext on wp-login.php won’t change “Back to site name” text
Your snippet works fine for me. Although, you should be testing the second argument, rather than the first. See the codex. You are testing for text that may already have been translated, so your string comparison could fail. function custom_login_text ( $translated_text, $untranslated_text ) { if (in_array( $GLOBALS[‘pagenow’], array( ‘wp-login.php’, ‘wp-register.php’ ) )) { if … Read more