WP HOOKS
akcjaod 4.3.0

remove_user_role

Args 2Plik wp-includes/class-wp-user.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Fires immediately after a role as been removed from a user.

Parametry

ParametrTypOpis
$user_idintThe user ID.
$rolestringThe removed role.

Wywołanie

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

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

Popularne w tej kategorii