Home / Admin / How to Disable reCAPTCHA for Automated Testing
Duplicate Snippet

Embed Snippet on Your Site

How to Disable reCAPTCHA for Automated Testing

<10
Code Preview
php
<?php
/**
 * Disable for automated testing.
 *
 * @link   https://wpforms.com/developers/how-to-disable-recaptcha-for-automated-testing/
 */
 
    // Disable reCAPTCHA assets and initialisation on the frontend.
    add_filter( 'wpforms_frontend_recaptcha_disable', '__return_true' );
 
    // Disable validation and verification on the backend.
    add_filter( 'wpforms_process_bypass_captcha', '__return_true' );

Comments

Add a Comment