check_is_user_spammed WordPress Filter Hook

The check_is_user_spammed Wordpress hook allows you to check if a user has been marked as spam by the Akismet anti-spam service. This can be useful for taking action against users who are trying to spam your site.

apply_filters( 'check_is_user_spammed', bool $spammed, WP_User $user ) #

Filters whether the user has been marked as a spammer.


Parameters

$spammed

(bool)Whether the user is considered a spammer.

$user

(WP_User)User to check against.


Top ↑

Source

File: wp-includes/user.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
3.7.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More
Show More