private function pluginHooks()
    {
        if (!is_array(self::$activated)) {
            return;
        }

        foreach (self::$activated as $plugin_file => $plugin_info) {
            add_action('wp_loaded', function () use ($plugin_file) {
                do_action('activate_' . $plugin_file);
            });
        }
    }
private function pluginHooks()
    {
        if (!is_array(self::$activated)) {
            return;
        }

        foreach (self::$activated as $plugin_file => $plugin_info) {
            add_action('wp_loaded', function () use ($plugin_file) {
                do_action('activate_' . $plugin_file);
            });
        }
    }
private function pluginHooks ( ) { if ( ! is_array ( self :: $ activated ) ) { return ; } foreach ( self :: $ activated as $ plugin_file => $ plugin_info ) { add_action ( 'wp_loaded' , function ( ) use ( $ plugin_file ) { do_action ( 'activate_' . $ plugin_file ) ; } ) ; } }
This accounts for the plugin hooks that would run if the plugins were
loaded as usual. Plugins are removed by deletion, so there's no way
to deactivate or uninstall.
This accounts for the plugin hooks that would run if the plugins were loaded as usual . Plugins are removed by deletion so there s no way to deactivate or uninstall .