user_new_form

ACTION wp-admin\user-new.php (ligne 506) github
Fires at the end of the new user form. Passes a contextual string to make both types of new user forms uniquely targetable. Contexts are 'add-existing-user' (Multisite), and 'add-new-user' (single site and network admin).

Paramètres

Entrée :
'add-existing-user'
Sortie :
@param string $type A contextual string specifying which type of new user form the hook follows.

Utilisation

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

function ma_fonction_personnalisee('add-existing-user') {
    // Votre code ici
    error_log('Hook user_new_form déclenché');
}

Actualités

Chargement des actualités...