AI Summary
Description
The wpforms_process_bypass_captcha
filter lets you skip CAPTCHA verification during form processing. This is helpful for automated tests or for allowing logged in users to submit forms without a CAPTCHA challenge.
Return true
to skip CAPTCHA checks on submit. If you also want to prevent CAPTCHA assets from loading on the frontend, pair this with the wpforms_frontend_recaptcha_disable
filter.
parameter | type | description |
---|---|---|
$bypass_captcha | bool | Whether to bypass CAPTCHA. Default is false. |
$entry | array | Raw submission data from $_POST . |
$form_data | array | Form ID |
Source
wpforms\includes\class-process.php
Example
// Bypass CAPTCHA for logged in users only.
add_filter( 'wpforms_process_bypass_captcha', function( $bypass, $entry, $form_data ) {
return is_user_logged_in() ? true : $bypass;
}, 10, 3 );