• Resolved wpshushu

    (@wpshushu)


    Hi,

    I’d like QM to run only on frontend pages, how to make it skip /wp-admin/*?

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author John Blackbourn

    (@johnbillion)

    WordPress Core Developer

    You can conditionally call define( 'QM_DISABLE', true ) in your wp-config.php file when the path matches /wp-admin, or you can call do_action( 'qm/cease' ) at some point in the admin area, eg in a mu-plugin.

    Thread Starter wpshushu

    (@wpshushu)

    @johnbillion

    This works

    
    add_action('plugins_loaded', function() {
    	do_action( 'qm/cease' );
    });
    
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘skip /wp-admin/*’ is closed to new replies.