mailpoet
Last commit date
assets
6 years ago
generated
6 years ago
lang
6 years ago
lib
6 years ago
vendor
6 years ago
vendor-prefixed
6 years ago
views
6 years ago
index.php
9 years ago
license.txt
9 years ago
mailpoet-cron.php
7 years ago
mailpoet.php
6 years ago
mailpoet_initializer.php
7 years ago
readme.txt
6 years ago
uninstall.php
9 years ago
mailpoet_initializer.php
22 lines
| 1 | <?php |
| 2 | |
| 3 | use MailPoet\Config\Env; |
| 4 | |
| 5 | if (!defined('ABSPATH') || empty($mailpoet_plugin)) exit; |
| 6 | |
| 7 | require_once($mailpoet_plugin['autoloader']); |
| 8 | |
| 9 | define('MAILPOET_VERSION', $mailpoet_plugin['version']); |
| 10 | |
| 11 | Env::init( |
| 12 | $mailpoet_plugin['filename'], |
| 13 | $mailpoet_plugin['version'], |
| 14 | DB_HOST, |
| 15 | DB_USER, |
| 16 | DB_PASSWORD, |
| 17 | DB_NAME |
| 18 | ); |
| 19 | |
| 20 | $initializer = MailPoet\DI\ContainerWrapper::getInstance()->get(MailPoet\Config\Initializer::class); |
| 21 | $initializer->init(); |
| 22 |