edit_user_created_user

ACTION wp-admin\includes\user.php (ligne 247) github
Fires after a new user has been created.

Paramètres

Entrée :
$user_id, $notify
Sortie :
@param int|WP_Error $user_id ID of the newly created user or WP_Error on failure.
@param string       $notify  Type of notification that should happen. See

Utilisation

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

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

Actualités

Chargement des actualités...