wp_get_password_hint

Gets the text suggesting how to create strong passwords.

Description

(string) wp_get_password_hint(); 

Returns (string)

The password hint text.


Usage

  1. if ( !function_exists( 'wp_get_password_hint' ) ) { 
  2. require_once ABSPATH . WPINC . '/user.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = wp_get_password_hint(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/wp-includes/user.php  
  1. function wp_get_password_hint() { 
  2. $hint = __( 'Hint: The password should be at least twelve characters long. To make it stronger, use upper and lower case letters, numbers, and symbols like ! " ? $ % ^ & ).' ); 
  3.  
  4. /** 
  5. * Filters the text describing the site's password complexity policy. 
  6. * @since 4.1.0 
  7. * @param string $hint The password hint text. 
  8. */ 
  9. return apply_filters( 'password_hint', $hint );