Title: Doesn&#8217;t Work
Last modified: December 17, 2020

---

# Doesn’t Work

 *  [casbboy](https://wordpress.org/support/users/casbboy/)
 * (@casbboy)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/doesnt-work-2575/)
 * Doesn’t work. Installed for the Selective Plugin Loading. Followed the guide,
   set Selective Plugin Loading to on, moved the file over to the proper mu-plugins
   folder, and still didn’t work on disabling plugins on a per-page basis. Would
   go to product page, check the plugins to disable, save, and wouldn’t do anything.
   all plugins would still run.
 * ended up just adding this code to a php file and uploaded to the mu-plugins folder,
   worked like a dream:
 *     ```
       $request_uri = parse_url( $_SERVER['REQUEST_URI'], PHP_URL_PATH );
   
       $is_admin = strpos( $request_uri, '/wp-admin/' );
   
       if( false === $is_admin ){
       	add_filter( 'option_active_plugins', function( $plugins ){
   
       		global $request_uri;
   
       		$is_contact_page = strpos( $request_uri, '/gift-card/' );
   
       		$myplugins = array( 
       			"woo-variation-gallery-pro/woo-variation-gallery-pro.php", 
       			"woo-variation-gallery/woo-variation-gallery.php"
       		);
   
       		if( false !== $is_contact_page ){
       			$plugins = array_diff( $plugins, $myplugins );
       		}
   
       		return $plugins;
   
       	} );
       }
       ```
   

The topic ‘Doesn’t Work’ is closed to new replies.

 * ![](https://ps.w.org/plugin-organizer/assets/icon-256x256.png?rev=1786554)
 * [Plugin Organizer](https://wordpress.org/plugins/plugin-organizer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/plugin-organizer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/plugin-organizer/)
 * [Active Topics](https://wordpress.org/support/plugin/plugin-organizer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/plugin-organizer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/plugin-organizer/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [casbboy](https://wordpress.org/support/users/casbboy/)
 * Last activity: [5 years, 3 months ago](https://wordpress.org/support/topic/doesnt-work-2575/)