• Resolved duesselnet

    (@duesselnet)


    Somehow I can’t dequeue the recaptcha JS injection.
    I’ve found the injection in your plugin here:

    				wp_enqueue_script(
    					'evf-recaptcha',
    					$recaptcha_api,
    					'v3' === $recaptcha_type ? array() : array( 'jquery' ),
    					'v3' === $recaptcha_type ? '3.0.0' : '2.0.0',
    					true
    				);
    

    Both methods are not working:

    
    wp_dequeue_script('evf-recaptcha-js');
    wp_dequeue_script('evf-recaptcha');
    

    I’ve even tried it within the action wp_print_styles or wp_enqueue_scripts.
    Because of EU GDPR reasons I need to dequeue recaptcha which afterwards will be injected after user consent. For these works I firstly need to dequeue your recaptcha injection.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Amrit Kumar Shrestha

    (@shresthauzwal)

    Hi @duesselnet,

    Sorry for the delay,

    You can use the following code snippet to disable the recaptcha from your site.

    add_filter(
        'everest_forms_recaptcha_disabled',
        function( $content ) {
            return true;
        },
        99
    );

    Thank you!

    Plugin Support Amrit Kumar Shrestha

    (@shresthauzwal)

    Hi There,

    Since we are not getting any response from your side, We are marking this thread as resolved. Please create a new support thread if needed.

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘dequeue recaptcha’ is closed to new replies.