action_scheduler_use_cpu_execution_time хук-фильтрWC 1.0

Get the CPU time if the hosting environment uses it rather than wall-clock time to calculate a process's execution time.

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

add_filter( 'action_scheduler_use_cpu_execution_time', 'wp_kama_action_scheduler_use_cpu_execution_time_filter' );

/**
 * Function for `action_scheduler_use_cpu_execution_time` filter-hook.
 * 
 * @param  $defined 
 *
 * @return 
 */
function wp_kama_action_scheduler_use_cpu_execution_time_filter( $defined ){

	// filter...
	return $defined;
}
$defined
-

Где вызывается хук

ActionScheduler_Abstract_QueueRunner::get_execution_time()
action_scheduler_use_cpu_execution_time
woocommerce/packages/action-scheduler/classes/abstracts/ActionScheduler_Abstract_QueueRunner.php 150
if ( function_exists( 'getrusage' ) && apply_filters( 'action_scheduler_use_cpu_execution_time', defined( 'PANTHEON_ENVIRONMENT' ) ) ) {

Где используется хук в WooCommerce

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