WP HOOKS
akcjaod MU (3.0.0)

added_existing_user

Args 2Plik wp-includes/ms-functions.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Fires immediately after an existing user is added to a site.

Parametry

ParametrTypOpis
$user_idintUser ID.
$resulttrue | \WP_ErrorTrue on success or a WP_Error object if the user doesn't exist or could not be added.

Wywołanie

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

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