ActionScheduler_QueueCleaner::clean()publicWC 1.0

Do all of the cleaning actions.

Метод класса: ActionScheduler_QueueCleaner{}

Хуков нет.

Возвращает

null. Ничего.

Использование

$ActionScheduler_QueueCleaner = new ActionScheduler_QueueCleaner();
$ActionScheduler_QueueCleaner->clean( $time_limit );
$time_limit(int)
The number of seconds to use as the timeout and failure period.
По умолчанию: 300 (5 minutes)

Код ActionScheduler_QueueCleaner::clean() WC 7.1.0

public function clean( $time_limit = 300 ) {
	$this->delete_old_actions();
	$this->reset_timeouts( $time_limit );
	$this->mark_failures( $time_limit );
}