src/Codeception/Module/WPBrowser.php
public function activatePlugin($pluginSlug)
    {
        foreach ((array)$pluginSlug as $plugin) {
            $this->checkOption('//*[@data-slug="' . $plugin . '"]/th/input');
        }
        $this->selectOption('action', 'activate-selected');
        $this->click("#doaction");
    }
public function activatePlugin($pluginSlug)
    {
        foreach ((array)$pluginSlug as $plugin) {
            $this->checkOption('//*[@data-slug="' . $plugin . '"]/th/input');
        }
        $this->selectOption('action', 'activate-selected');
        $this->click("#doaction");
    }
public function activatePlugin ( $ pluginSlug ) { foreach ( ( array ) $ pluginSlug as $ plugin ) { $ this -> checkOption ( '//*[@data-slug="' . $ plugin . '"]/th/input' ) ; } $ this -> selectOption ( 'action' , 'activate-selected' ) ; $ this -> click ( "#doaction" ) ; }
In the plugin administration screen activates a plugin clicking the "Activate" link.

The method will **not** handle authentication to the admin area.

@example
```php
// Activate a plugin.
$I->loginAsAdmin();
$I->amOnPluginsPage();
$I->activatePlugin('hello-dolly');
// Activate a list of plugins.
$I->loginAsAdmin();
$I->amOnPluginsPage();
$I->activatePlugin(['hello-dolly','another-plugin']);
```

@param  string|array $pluginSlug The plugin slug, like "hello-dolly" or a list of plugin slugs.
In the plugin administration screen activates a plugin clicking the Activate link .