filtrod 3.0.0
signup_user_init
Opis — z kodu źródłowego
Filters the default user variables used on the user sign-up form.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$signup_user_defaults | array | { An array of default user variables. @type string $user_name The user username. @type string $user_email The user email address. @type WP_Error $errors A WP_Error object with possible errors relevant to the sign-up user. } |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_filter( 'signup_user_init', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}
// rejestracja funkcji zwrotnej
add_filter( 'signup_user_init', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}Popularne w tej kategorii