Skip to content

Instantly share code, notes, and snippets.

@andrewlimaza
Created September 29, 2020 18:04
Show Gist options
  • Save andrewlimaza/a85115c6bf2c173fa29e2977f6496b5e to your computer and use it in GitHub Desktop.
Save andrewlimaza/a85115c6bf2c173fa29e2977f6496b5e to your computer and use it in GitHub Desktop.
Change WordPress Password Hint Text
<?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