Thread Starter
svennd
(@svennd)
I’m not sure how to accomplish that, I tried with a must-load plugin to achieve this, but I’m not sure how to approach this… :/
So I found a way to disable the plugin, but now i would need to know how to find out if its an amp page or not … is there a method for that ?
add_filter( 'option_active_plugins', function( $plugins ) {
return array_filter( $plugins, function( $plugin ) {
return ! (in_array( $plugin, array("mistape/mistape.php") ) );
} );
} );
based on : https://stackoverflow.com/questions/46695369/wordpress-unload-plugin-for-single-page-load