Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save dwanjuki/d4cc10e2d30bc76781f5a7109ccba559 to your computer and use it in GitHub Desktop.
Save dwanjuki/d4cc10e2d30bc76781f5a7109ccba559 to your computer and use it in GitHub Desktop.
Change WordPress Password Hint Text
<?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