Export lists for email

[MAILPOET-1354]
This commit is contained in:
Pavel Dohnal
2018-05-02 14:58:58 +01:00
committed by pavel-mailpoet
parent f8e443ed3c
commit 8e13eb50bf
5 changed files with 192 additions and 0 deletions

View File

@ -130,6 +130,7 @@ class Initializer {
$this->setupMenu();
$this->setupShortcodes();
$this->setupImages();
$this->setupPersonalDataExporters();
$this->setupChangelog();
$this->setupCronTrigger();
@ -264,6 +265,11 @@ class Initializer {
$hooks->init();
}
function setupPersonalDataExporters() {
$exporters = new PersonalDataExporters();
$exporters->init();
}
function handleFailedInitialization($exception) {
// check if we are able to add pages at this point
if(function_exists('wp_get_current_user')) {