Reschedule bounce task

[MAILPOET-2100]
This commit is contained in:
Pavel Dohnal
2019-06-06 16:34:33 +02:00
committed by M. Shull
parent 7163ee6430
commit e1e96d0c12
3 changed files with 50 additions and 0 deletions

View File

@ -125,6 +125,10 @@ abstract class SimpleWorker {
return $date;
}
/**
* @param bool $future
* @return ScheduledTask[]
*/
static function getScheduledTasks($future = false) {
$dateWhere = ($future) ? 'whereGt' : 'whereLte';
$wp = new WPFunctions();