src/EventSubscriber.php
public function activateWordPressPlugin(PackageEvent $event)
    {
        if (! $this->isWordPressPlugin($this->getPackage($event))) {
            return;
        }
        
        static::$plugin->getInstanceOf(PluginInteractor::class)->activate(
            $event->getComposer(),
            $event->getIO(),
            preg_replace('/^wpackagist-plugin\//', '', $this->getPackageName($event))
        );
    }
public function activateWordPressPlugin(PackageEvent $event)
    {
        if (! $this->isWordPressPlugin($this->getPackage($event))) {
            return;
        }
        
        static::$plugin->getInstanceOf(PluginInteractor::class)->activate(
            $event->getComposer(),
            $event->getIO(),
            preg_replace('/^wpackagist-plugin\//', '', $this->getPackageName($event))
        );
    }
public function activateWordPressPlugin ( PackageEvent $ event ) { if ( ! $ this -> isWordPressPlugin ( $ this -> getPackage ( $ event ) ) ) { return ; } static :: $ plugin -> getInstanceOf ( PluginInteractor :: class ) -> activate ( $ event -> getComposer ( ) , $ event -> getIO ( ) , preg_replace ( '/^wpackagist-plugin\//' , '' , $ this -> getPackageName ( $ event ) ) ) ; }
Activate a WordPress plugin.

@param  \Composer\Installer\PackageEvent  $event
@return void
Activate a WordPress plugin .