llms_disable_checkout_for_spammers()
Disable checkout and billing update forms for spammers.
Return Return
(mixed) Truthy means stop checkout.
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;
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 9.0.0 | Introduced. |