Skip to content

Instantly share code, notes, and snippets.

@Roy-Oto
Created May 10, 2021 06:18
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 Roy-Oto/41b06fd66b3119c644f1bf47d63025d4 to your computer and use it in GitHub Desktop.
Save Roy-Oto/41b06fd66b3119c644f1bf47d63025d4 to your computer and use it in GitHub Desktop.
How to change the wording of the password input screen
function my_password_form() {
return '<p>ここが説明文</p>
<form class="post_password" action="' . home_url() . '/wp-login.php?action=postpass" method="post">
パスワード <input name="post_password" type="password" size="24" /> <input type="submit" name="Submit" value="' . esc_attr__("ボタン") . '" />
</form>';
}
add_filter('the_password_form', 'my_password_form');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment