Activates the module with the given ID.
public activate_module ( string $id ) : |
||
$id | string | Module ID. |
return | Module object. |
/** * Updates a single module according to the data in the request. * * @param string $id Module ID. * * @return void */ private function update_module($id) { if (empty($_POST['multilingualpress_modules'][$id])) { $this->module_manager->deactivate_module($id); } else { $this->module_manager->activate_module($id); } }