Use a different hook for post notifications

[MAILPOET-1638]
This commit is contained in:
Pavel Dohnal
2018-11-27 16:01:09 +01:00
parent 0e4de4197d
commit 5db3536ded
4 changed files with 25 additions and 12 deletions

View File

@ -815,7 +815,7 @@ class SchedulerTest extends \MailPoetTest {
foreach(WPPosts::getTypes() as $post_type) {
remove_filter(
'publish_' . $post_type,
'\MailPoet\Newsletter\Scheduler\Scheduler::schedulePostNotification',
'\MailPoet\Newsletter\Scheduler\Scheduler::transitionHook',
10, 1
);
}