check_is_user_spammed хук-фильтр . WP 3.7.0
Filters whether the user has been marked as a spammer.
Использование
add_filter( 'check_is_user_spammed', 'filter_function_name_7857', 10, 2 ); function filter_function_name_7857( $spammed, $user ){ // filter... return $spammed; }
- $spammed(true/false)
- Whether the user is considered a spammer.
- $user(WP_User)
- User to check against.
Список изменений
С версии 3.7.0 | Введена. |
Где вызывается хук
check_is_user_spammed
wp-includes/user.php 498
$spammed = apply_filters( 'check_is_user_spammed', is_user_spammy( $user ), $user );