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

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

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 277
if ( function_exists( 'getrusage' ) && apply_filters( 'action_scheduler_use_cpu_execution_time', defined( 'PANTHEON_ENVIRONMENT' ) ) ) {

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

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