Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Plugin Name: Swift Performance Tweaks
- */
- if (isset($_POST['add-to-cart']) && !empty($_POST['add-to-cart'])){
- add_filter('option_active_plugins', function($active_plugins){
- if (($key = array_search('swift-performance/performance.php', $active_plugins)) !== false) {
- unset($active_plugins[$key]);
- }
- });
- }
- ?>
Add Comment
Please, Sign In to add comment