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

ActionScheduler_Abstract_QueueRunner::time_likely_to_be_exceeded() protected WC 1.0

Check if the host's max execution time is (likely) to be exceeded if processing more actions.

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




// protected - в коде основоного (родительского) или дочернего класса
$result = $this->time_likely_to_be_exceeded( $processed_actions );
$processed_actions(int) (обязательный)
The number of actions processed so far - used to determine the likelihood of exceeding the time limit if processing another action

Код ActionScheduler_Abstract_QueueRunner::time_likely_to_be_exceeded() WC 5.8.0

protected function time_likely_to_be_exceeded( $processed_actions ) {

	$execution_time        = $this->get_execution_time();
	$max_execution_time    = $this->get_time_limit();
	$time_per_action       = $execution_time / $processed_actions;
	$estimated_time        = $execution_time + ( $time_per_action * 3 );
	$likely_to_be_exceeded = $estimated_time > $max_execution_time;

	return apply_filters( 'action_scheduler_maximum_execution_time_likely_to_be_exceeded', $likely_to_be_exceeded, $this, $processed_actions, $execution_time, $max_execution_time );