llms_is_spammer()

Determine whether the current visitor a spammer.


Return Return

(bool) Whether the current visitor a spammer.


Top ↑

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 );
}


Top ↑

Changelog Changelog

Changelog
Version Description
9.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.