Network dashboard has disappeared after deactivating plugin.
-
I recently deactivated a plugin which caused some dashboard pages to disappear including the plugins page. The only way I have figured how to fix is is by activating the plugin via code. The problem is the code activates the plugin on the individual blogs, I need the plugin to be activated on the networks plugin page.
This is the code I used:
function run_activate_plugin( $plugin ) { $current = get_option( 'active_plugins' ); $plugin = plugin_basename( trim( $plugin ) ); if ( !in_array( $plugin, $current ) ) { $current[] = $plugin; sort( $current ); do_action( 'activate_plugin', trim( $plugin ) ); update_option( 'active_plugins', $current ); do_action( 'activate_' . trim( $plugin ) ); do_action( 'activated_plugin', trim( $plugin) ); } return null; } run_activate_plugin( 'plugin/plugin.php' );
Would anyone be able to help me change the code so it activates the plugin on the network plugin page? I’ve tried trying to activate it in phpmyadmin but had no luck.
Thanks
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Network dashboard has disappeared after deactivating plugin.’ is closed to new replies.