• Resolved Pexle Chris

    (@pexlechris)


    Hi I need to disable the automatic amp scan (Checking your site for AMP compatibility issues) in Plugins Page because our sites stacks and we face delays in the backend. We want to doit whenever we want ??

    I found that if I disable the pre_current_active_plugins & admin_enqueue_scripts actions in file wp-content/plugins/amp/src/Admin/AfterActivationSiteScan.php the automatic amp scan stops to run. So is this the quick solution to remove these actions?
    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Milind More

    (@milindmore22)

    Hello @pexlechris

    Thank you for contacting us, Yes, removing those actions or just dequeuing the amp-site-scan-notice handle should disable the AMP plugin scan.

    here is a sample code in case you need

    
    /**
     * Dequeue Site Scan scripts.
     *
     * @since 1.0
     */
    function amp_dequeue_site_scan_scripts() {
    	wp_dequeue_script( 'amp-site-scan-notice' );
    }
    
    add_action( 'admin_print_scripts', 'amp_dequeue_site_scan_scripts', 100 );
    

    I hope this is helpful!

    Thread Starter Pexle Chris

    (@pexlechris)

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Disable Site Scan’ is closed to new replies.