llms_disable_checkout_for_spammers()

Disable checkout and billing update forms for spammers.


Return Return

(mixed) Truthy means stop checkout.


Top ↑

Source Source

File: includes/llms.spam.functions.php

function llms_disable_checkout_for_spammers() {
	// Bail if Spam Protection is disabled.
	if ( ! llms_is_spam_protection_enabled() ) {
		return false;
	}

	// Bail if the current visitor is not a spammer.
	if ( ! llms_is_spammer() ) {
		return false;
	}

	// Show a notice at LifterLMS checkout RE spam.
	$notice = __( 'Suspicious activity detected. Try again in a few minutes.', 'lifterlms' );
	llms_add_notice( $notice, 'error' );

	return true;
}


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.