Forked from andrewlimaza/change-wp-password-hint.php
Last active
June 3, 2025 15:11
-
-
Save dwanjuki/d4cc10e2d30bc76781f5a7109ccba559 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. | |
* | |
* You can add this recipe to your site by creating a custom plugin | |
* or using the Code Snippets plugin available for free in the WordPress repository. | |
* Read this companion article for step-by-step directions on either method. | |
* https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/ | |
*/ | |
function my_wp_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', 'my_wp_change_password_hint' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment