make_spam_user

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

Paramètres

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

Utilisation

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

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

Actualités

Chargement des actualités...