original_string: 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))
          );
      }
code: 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))
          );
      }
code_tokens: 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 ) ) ) ; }
docstring: Activate a WordPress plugin.
  
  @param  \Composer\Installer\PackageEvent  $event
  @return void
docstring_tokens: Activate a WordPress plugin .