• Resolved gopalnipane

    (@gopalnipane)


    I am trying to use REST API and I am getting the below error.

    ERROR: Please solve Captcha correctly

    How can I use hook to check if the request is coming from rest api?

    how to use hook anr_verify_captcha_pre to love this.

    • This topic was modified 4 years, 3 months ago by gopalnipane.
Viewing 1 replies (of 1 total)
  • Add this in your theme function.php file

    
    add_action('rest_api_init', 'disable_captcha_rest_api');
    
    function disable_captcha_rest_api($wp_rest_server)
    {
    
       add_filter( 'anr_verify_captcha_pre', '__return_true' );
    
    }
    
Viewing 1 replies (of 1 total)
  • The topic ‘how to use hook `anr_verify_captcha_pre`’ is closed to new replies.