esc_html__( 'Activated as mu-plugin', 'github-updater' ) ), $actions ); } /* * Deactivate normal plugin as it's loaded as mu-plugin. */ add_action( 'activated_plugin', 'ghu_deactivate', 10, 1 ); /* * Remove links and checkbox from Plugins page so user can't delete main plugin. */ add_filter( 'network_admin_plugin_action_links_' . $ghu_plugin_file, 'ghu_mu_plugin_active' ); add_filter( 'plugin_action_links_' . $ghu_plugin_file, 'ghu_mu_plugin_active' ); add_action( 'after_plugin_row_' . $ghu_plugin_file, function () { print ''; print ''; } );