WP HOOKS
filtrod 3.7.0

check_is_user_spammed

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

Opis — z kodu źródłowego

Filters whether the user has been marked as a spammer.

Parametry

ParametrTypOpis
$spammedboolWhether the user is considered a spammer.
$user\WP_UserUser to check against.

Wywołanie

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

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

Popularne w tej kategorii