akcjaod 3.7.0
user_new_form
Opis — z kodu źródłowego
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).
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$type | string | A contextual string specifying which type of new user form the hook follows. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_action( 'user_new_form', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}
// rejestracja funkcji zwrotnej
add_action( 'user_new_form', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}Popularne w tej kategorii