• Resolved loopforever

    (@loopforever)


    Hello, I want to disable reCAPTCHA for a certain page. But the code below doesn’t work. Can you help me ?

    function.php (child-theme)

    function disable_recaptcha_for_process_page(){
    if(get_the_ID() == 98824 ) {
    add_filter( 'wordfence_ls_require_captcha', '__return_false' );// disable wordfence require_captcha
    }
    }
    add_action('template_redirect', 'disable_recaptcha_for_process_page');

Viewing 1 replies (of 1 total)
  • Hi @loopforever

    Thanks for reaching out!

    Unfortunately, we cannot provide suggestions for custom code implementations regarding Wordfence as we are unable to support it.

    Please also keep in mind that editing the Wordfence plugin or attempting to change functionality of its features may make you ineligible for support in the future as we cannot troubleshoot the plugin when custom changes have been made.

    Thanks,

    Joshua

Viewing 1 replies (of 1 total)
  • The topic ‘Disable reCaptcha for a specific page’ is closed to new replies.