Adds higher priority to init hook so that it fires before the widgets hook

This commit is contained in:
Vlad
2017-08-29 23:12:27 -04:00
parent e1cc25239b
commit 053f9e0cdf

View File

@ -61,7 +61,7 @@ class Initializer {
add_action('init', array(
$this,
'onInit'
));
), 0);
add_action('wp_loaded', array(
$this,
@ -113,7 +113,7 @@ class Initializer {
do_action('mailpoet_initialized', MAILPOET_VERSION);
} catch(\Exception $e) {
define('MAILPOET_INITIALIZED', false);
return $this->handleFailedInitialization($e);
}