api_field( $context ); } /** * Whether the submission in the current request is spam. * * Contexts: * - 'full' (default): every check: IP block list, honeypot, JavaScript, timing and interaction. * - 'basic': IP block list and honeypot only, for requests that can't carry the script's values. * - 'login': honeypot only. Use it for login forms, which an IP block must never lock out. * * A blocked submission is counted, logged (when the log is on) and, for a filled * honeypot, counted towards an IP block. The result is cached for the request. * * @param string $context 'full', 'basic' or 'login'. * @return bool True when the submission should be refused. */ function accessnow_spam_eater_is_spam( $context = 'full' ) { return \AccessNow\SpamEater\Plugin::instance()->api_is_spam( $context ); } /** * Reference code of the last failed check in this request (for example 'SE-C2'), or ''. * * Show it in the error message: visitors can quote it, and it tells you which * check failed without revealing how to get past it. * * @return string */ function accessnow_spam_eater_fail_code() { return \AccessNow\SpamEater\Plugin::instance()->api_fail_code(); }