src/PluginLoader.php
protected function activatePlugin(string $plugin): void
    {
        require_once WPMU_PLUGIN_DIR.'/'.$plugin;

        do_action('activate_'.$plugin);

        $plugins = $this->getActivePlugins();
        $plugins[] = $plugin;

        $this->setActivePlugins($plugins);
    }
protected function activatePlugin(string $plugin): void
    {
        require_once WPMU_PLUGIN_DIR.'/'.$plugin;

        do_action('activate_'.$plugin);

        $plugins = $this->getActivePlugins();
        $plugins[] = $plugin;

        $this->setActivePlugins($plugins);
    }
protected function activatePlugin ( string $ plugin ) : void { require_once WPMU_PLUGIN_DIR . '/' . $ plugin ; do_action ( 'activate_' . $ plugin ) ; $ plugins = $ this -> getActivePlugins ( ) ; $ plugins [ ] = $ plugin ; $ this -> setActivePlugins ( $ plugins ) ; }
Activate plugin by their name.

@param string $plugin

@return void
Activate plugin by their name .