password_reset_expiration

password_reset_expiration

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7

apply_filters('password_reset_expiration') is found 1 times:

  • /wp-includes/user.php line 3052
    	 * @since 4.3.0
    	 *
    	 * @param int $expiration The expiration time in seconds.
    	 */
    	$expiration_duration = apply_filters( 'password_reset_expiration', DAY_IN_SECONDS );
    
    	if ( str_contains( $user->user_activation_key, ':' ) ) {
    		list( $pass_request_time, $pass_key ) = explode( ':', $user->user_activation_key, 2 );
    		$expiration_time                      = $pass_request_time + $expiration_duration;
    	} else {
    		$pass_key        = $user->user_activation_key;