WP HOOKS
akcjaod 2.1.0

register_post

Args 3Plik wp-includes/user.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Fires when submitting registration form data, before the user is created.

Parametry

ParametrTypOpis
$sanitized_user_loginstringThe submitted username after being sanitized.
$user_emailstringThe submitted email.
$errors\WP_ErrorContains 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
}

Popularne w tej kategorii