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.

parametertypedescription
$bypass_captchaboolWhether to bypass CAPTCHA. Default is false.
$entryarrayRaw submission data from $_POST.
$form_dataarrayForm 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 );

Reference Article