WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Самая быстрая Тема-конструктор для WordPress
функция не описана

ActionScheduler_QueueCleaner::reset_timeouts() public WC 1.0

Unclaim pending actions that have not been run within a given time limit.

When called by ActionScheduler_Abstract_QueueRunner::run_cleanup(), the time limit passed as a parameter is 10x the time limit used for queue processing.

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

Возвращает

Null. Ничего.

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

$ActionScheduler_QueueCleaner = new ActionScheduler_QueueCleaner();
$ActionScheduler_QueueCleaner->reset_timeouts( $time_limit );
$time_limit(число)
The number of seconds to allow a queue to run before unclaiming its pending actions.
По умолчанию: 300 (5 minutes)

Код ActionScheduler_QueueCleaner::reset_timeouts() WC 4.6.1

<?php
public function reset_timeouts( $time_limit = 300 ) {
	$timeout = apply_filters( 'action_scheduler_timeout_period', $time_limit );
	if ( $timeout < 0 ) {
		return;
	}
	$cutoff = as_get_datetime_object($timeout.' seconds ago');
	$actions_to_reset = $this->store->query_actions( array(
		'status'           => ActionScheduler_Store::STATUS_PENDING,
		'modified'         => $cutoff,
		'modified_compare' => '<=',
		'claimed'          => true,
		'per_page'         => $this->get_batch_size(),
	) );

	foreach ( $actions_to_reset as $action_id ) {
		$this->store->unclaim_action( $action_id );
		do_action( 'action_scheduler_reset_action', $action_id );
	}
}