filtrod MU (3.0.0)
wpmu_validate_user_signup
Opis — z kodu źródłowego
Filters the validated user registration details.
This does not allow you to override the username or email of the user during registration. The values are solely used for validation and error handling.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$result | array | { The array of user name, email, and the error messages. @type string $user_name Sanitized and unique username. @type string $orig_username Original username. @type string $user_email User email address. @type WP_Error $errors WP_Error object containing any errors found. } |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej
add_filter( 'wpmu_validate_user_signup', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}
// rejestracja funkcji zwrotnej
add_filter( 'wpmu_validate_user_signup', 'twoja_funkcja' );
function twoja_funkcja($param_1) {
// Twój kod
}