akcjaod 2.1.0
register_post
Opis — z kodu źródłowego
Fires when submitting registration form data, before the user is created.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$sanitized_user_login | string | The submitted username after being sanitized. |
$user_email | string | The submitted email. |
$errors | \WP_Error | Contains any errors with submitted username and email, e.g., an empty field, an invalid username or email, or an existing username or email. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'register_post', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'register_post', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}Popularne w tej kategorii