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', 'filter_function_name_7317' ); function filter_function_name_7317( $defined ){ // filter... return $defined; }
- $defined
- -
Где вызывается хук
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' ) ) ) {