Add custom MailPoet image size for newsletters

This commit is contained in:
Tautvidas Sipavičius
2015-12-04 14:37:05 +02:00
parent 9621cb3ca9
commit 3a417d460f
2 changed files with 21 additions and 2 deletions

View File

@ -29,6 +29,7 @@ class Initializer {
$this->setupPublicAPI();
$this->runQueueSupervisor();
$this->setupHooks();
$this->setupImages();
}
function setupDB() {
@ -140,4 +141,8 @@ class Initializer {
$supervisor->checkDaemon();
} catch (\Exception $e) {}
}
}
function setupImages() {
add_image_size('mailpoet_newsletter_max', 1320);
}
}