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).
'add-existing-user'
Sortie :
@param string $type A contextual string specifying which type of new user form the hook follows.
// 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é');
}
Chargement des actualités...