• Resolved nelsonfx

    (@nelsonfx)


    Is there any functions or probably a future feature that allows to select in which pages/folder should recaptcha be enable? There’s pages that doesn’t require recaptcha and PageSpeeds is always warning about that script.

Viewing 1 replies (of 1 total)
  • Plugin Author Minor

    (@minor)

    Hi @nelsonfx,

    In version 4.0 you can customize hooks via functions.php.

    For example, you can use this in your global functions.php file:

    function customSgrRenderList(array $list): array //Where reCAPTCHA is rendered
    {
        //unset($list[0]);
        $list[] = 'register_form';
    
        return $list;
    }
    
    add_action('sgr_render_list', 'customSgrRenderList');
    
    function customSgrVerifyList(array $list): array //Where reCAPTCHA is verified
    {
        //unset($list[0]);
        $list[] = 'lostpassword_post';
    
        return $list;
    }
    
    add_action('sgr_verify_list', 'customSgrVerifyList');
Viewing 1 replies (of 1 total)
  • The topic ‘Enable reCAPTCHA only on pages which allow to create account or sumbit forms’ is closed to new replies.