Skip to content

Instantly share code, notes, and snippets.

@ko31
Created October 13, 2015 00:35
Show Gist options
  • Save ko31/2f0505bf79e9106953ed to your computer and use it in GitHub Desktop.
Save ko31/2f0505bf79e9106953ed to your computer and use it in GitHub Desktop.
【WordPress】ログインエラーメッセージを汎用的なものに変更する
function my_wp_error_msgs() {
return "ユーザー名かパスワードが正しくありません。";
}
add_filter( 'login_errors', 'my_wp_error_msgs' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment