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

WP_Background_Process::time_exceeded() WC 1.0

Time exceeded.

Ensures the batch never exceeds a sensible time limit. A timeout limit of 30s is common on shared hosting.

Это метод класса: WP_Background_Process

Возвращает

true/false.

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

$WP_Background_Process = new WP_Background_Process();
$var = $WP_Background_Process->time_exceeded();

Код WP Background Process::time exceeded: woocommerce/includes/libraries/wp-background-process.php WC 3.9.0

<?php
protected function time_exceeded() {
	$finish = $this->start_time + apply_filters( $this->identifier . '_default_time_limit', 20 ); // 20 seconds
	$return = false;

	if ( time() >= $finish ) {
		$return = true;
	}

	return apply_filters( $this->identifier . '_time_exceeded', $return );
}