Created
September 29, 2020 18:04
-
-
Save andrewlimaza/a85115c6bf2c173fa29e2977f6496b5e to your computer and use it in GitHub Desktop.
Change WordPress Password Hint Text
This file contains hidden or 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 | |
/** | |
* Change the WordPress password hint text. Note: This won't change any password checking functionality. | |
* Add this code to your child theme functions.php or via a custom plugin. | |
*/ | |
function yh_change_password_hint( $hint_text ) { | |
return "Please use a strong password. Passwords that consist of special characters (&#%!@), upper case/lower case characters and numbers are considered strong."; | |
} | |
add_filter( 'password_hint', 'yh_change_password_hint', 10, 1 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment