llms_is_spammer()
Determine whether the current visitor a spammer.
Return Return
(bool) Whether the current visitor a spammer.
Source Source
File: includes/llms.spam.functions.php
function llms_is_spammer() {
$is_spammer = false;
$activity = llms_get_spam_activity();
if ( false !== $activity && count( $activity ) >= LLMS_SPAM_ACTION_NUM_LIMIT ) {
$is_spammer = true;
}
/**
* Allow filtering whether the current visitor is a spammer.
*
* @since 9.0.0
*
* @param bool $is_spammer Whether the current visitor is a spammer.
* @param array $activity The list of potential spam activity.
*/
return apply_filters( 'llms_is_spammer', $is_spammer, $activity );
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 9.0.0 | Introduced. |