WordPress Multisite: Programmatically Activate / Deactivate a Plugin of a Specific Blog
Use a combination of switch_to_blog(), activate_plugins(), and deactivate_plugins(). You can put this in functions.php, but you’ll want to remove it once it runs: // hook to admin init add_action(‘admin_init’, ‘wpse_swap_plugins’); function wpse_swap_plugins() { // set blog ID per your needs $blog_id = 3; // switch to the site where you want to activate/deactivate plugins switch_to_blog($blog_id); … Read more