make_ham_user

ACTION wp-includes\user.php (ligne 2641) github
Fires after the user is marked as a HAM user. Opposite of SPAM.

Paramètres

Entrée :
$user_id
Sortie :
@param int $user_id ID of the user marked as HAM.

Utilisation

// Ajouter une fonction au hook action 'make_ham_user'
add_action('make_ham_user', 'ma_fonction_personnalisee', 10, 1);

function ma_fonction_personnalisee($user_id) {
    // Votre code ici
    error_log('Hook make_ham_user déclenché');
}

Actualités

Chargement des actualités...