allow_password_reset

FILTER wp-includes\user.php (ligne 5231) github
Filters whether to allow a password to be reset.

Paramètres

Entrée :
$allow, $user->ID
Sortie :
@param bool $allow   Whether to allow the password to be reset. Default true.
@param int  $user_id The ID of the user attempting to reset a password.

Utilisation

// Modifier la valeur avec le filtre 'allow_password_reset'
add_filter('allow_password_reset', 'ma_fonction_filtre', 10, 1);

function ma_fonction_filtre($allow) {
    // Modifier la valeur
    return $allow;
}

Actualités

Chargement des actualités...