GoogleReCaptcha
2 hooks fired by GoogleReCaptcha: 2 filters and 0 actions across 2 call sites.
2 hooks fired by GoogleReCaptcha: 2 filters and 0 actions across 2 call sites. 1 of the 2 call sites are described by a docblock, at the call or on the constant that names the hook; the rest are listed with their signature and call sites only. Paths are relative to the plugin directory.
xpac_forms_enable_verification
Filter · 3 arguments · 1 call site
Filters whether this add-on runs its token verification for the current submission.
Reached only when the form's own reCAPTCHA toggle is already on, and only after every other validation rule has passed: the callback firing this is registered on "xpac_forms_submission_validation" at priority PHP_INT_MAX - 10 and returns the validation array untouched while it is already failing. Returning false skips the check entirely — no request is made to Google's siteverify endpoint, the submission proceeds as though no protection were configured, and the "reCAPTCHA" key is unset from the logged entry data, where it still holds the submitted token rather than a score.
Each provider passes its own slug as the third argument, so a callback can disable one without touching the others. The slugs in use are "google-recaptcha" (this call site), "akismet" and "cloudflare-captcha". Forms' built-in Honeypot check never fires this filter and so cannot be disabled through it. The Forms Auto Submit plugin is the working example: it returns false for "google-recaptcha" and "cloudflare-captcha", because a form auto-submitted from URL parameters has no browser to mint a token in, while deliberately leaving "akismet" running.
apply_filters( 'xpac_forms_enable_verification', true, $submission, 'google-recaptcha' )$enable(bool) — Whether to run the provider's check. Default true.$submission(Submission) — The submission being validated.$provider(string) — Slug of the provider asking. Always "google-recaptcha" at this call site.
Fired from:
packages/GoogleReCaptcha/Addon.php:617
xpac_google_recaptcha_request_timeout
Filter · 1 argument · 1 call site
apply_filters( 'xpac_google_recaptcha_request_timeout', self::REQUEST_TIMEOUT )Fired from:
packages/GoogleReCaptcha/Addon.php:627