filtrod 3.7.0
check_is_user_spammed
Opis — z kodu źródłowego
Filters whether the user has been marked as a spammer.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$spammed | bool | Whether the user is considered a spammer. |
$user | \WP_User | User 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
}
// 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