Filter hook 'password_hint'

in WP Core File wp-includes/user.php at line 2999

View Source

password_hint

Filter Hook
Description
Filters the text describing the site's password complexity policy.

Hook Information

File Location wp-includes/user.php View on GitHub
Hook Type Filter
Line Number 2999

Hook Parameters

Type Name Description
string $hint The password hint text.

Usage Examples

Basic Usage
<?php
// Hook into password_hint
add_filter('password_hint', 'my_custom_filter', 10, 1);

function my_custom_filter($hint) {
    // Your custom filtering logic here
    return $hint;
}

Source Code Context

wp-includes/user.php:2999 - How this hook is used in WordPress core
<?php
2994  	 *
2995  	 * @since 4.1.0
2996  	 *
2997  	 * @param string $hint The password hint text.
2998  	 */
2999  	return apply_filters( 'password_hint', $hint );
3000  }
3001  
3002  /**
3003   * Creates, stores, then returns a password reset key for user.
3004   *

PHP Documentation

<?php
/**
	 * Filters the text describing the site's password complexity policy.
	 *
	 * @since 4.1.0
	 *
	 * @param string $hint The password hint text.
	 */
Quick Info
  • Hook Type: Filter
  • Parameters: 1
  • File: wp-includes/user.php
Related Hooks

Related hooks will be displayed here in future updates.