• Resolved chmars

    (@chmars)


    The plugin is active on every page and not only where needed.

    Is there any way to limit the plugin to pages with forms?

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

    (@mihche)

    
    add_action('wp_print_scripts', function (){
    	if(!is_page( array( 'PAGE ID WHERE YOU WANT IT', 'YOUR LOGIN PAGE ID', 'OTHER LOGIN PAGE ID' ) )){
    		wp_dequeue_script( 'google-invisible-recaptcha' );
    	}
    });
    

    Change the IDs of pages where you want invisible reCapctha to be active

    ~Mihai

Viewing 1 replies (of 1 total)
  • The topic ‘On Every Page and Not Only Where Needed?’ is closed to new replies.