is_check_enabled( 'honeypot_check_enabled' ); } /** * Evaluate honeypot value. * * @param SubmissionContext $context Normalized submission context. * @param SettingsSnapshot $settings Immutable settings snapshot. */ public function evaluate( SubmissionContext $context, SettingsSnapshot $settings ): CheckResult { unset( $settings ); if ( '' !== trim( $context->get_honeypot_value() ) ) { return CheckResult::block( ReasonCodeRegistry::HONEYPOT_FILLED ); } return CheckResult::pass(); } }