Home/Hooks/allow_password_reset
FILTER

allow_password_reset

Filters whether to allow a password to be reset.

wp-includes/user.php
Line 5190
2 Parameters
View Source

Usage

add_filter( 'allow_password_reset', 'your_callback_function', 10, 2 );

Filter Callback:

function your_callback_function( $allow, $user->ID ) {
    // Your code here
    return $allow;
}

Parameters

$allow

Parameter 1

$user->ID

Parameter 2

🔄 Filter Hook

Filter hooks allow you to modify data before it is saved to the database or displayed on the screen. Filters must return a value.