password_reset_expiration
Filters the expiration time of password reset keys.
Usage
add_filter( 'password_reset_expiration', 'wp_kama_password_reset_expiration_filter' ); /** * Function for `password_reset_expiration` filter-hook. * * @param int $expiration The expiration time in seconds. * * @return int */ function wp_kama_password_reset_expiration_filter( $expiration ){ // filter... return $expiration; }
- $expiration(int)
- The expiration time in seconds.
Changelog
Since 4.3.0 | Introduced. |
Where the hook is called
password_reset_expiration
wp-includes/user.php 3040
$expiration_duration = apply_filters( 'password_reset_expiration', DAY_IN_SECONDS );