WP HOOKS
akcjaod 4.4.0

invite_user

Args 3Plik wp-admin/user-new.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Fires immediately after an existing user is invited to join the site, but before the notification is sent.

Parametry

ParametrTypOpis
$user_idintThe invited user's ID.
$rolearrayArray containing role information for the invited user.
$newuser_keystringThe key of the invitation.

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'invite_user', 'twoja_funkcja', 10, 3 );

function twoja_funkcja($param_1, $param_2, $param_3) {
	// Twój kod
}

Popularne w tej kategorii