action_scheduler_lock_duration
Get the amount of time to set for a given lock. 60 seconds by default.
Использование
add_filter( 'action_scheduler_lock_duration', 'wp_kama_action_scheduler_lock_duration_filter' ); /** * Function for `action_scheduler_lock_duration` filter-hook. * * @param $lock_type * * @return */ function wp_kama_action_scheduler_lock_duration_filter( $lock_type ){ // filter... return $lock_type; }
- $lock_type
- -
Где вызывается хук
action_scheduler_lock_duration
woocommerce/packages/action-scheduler/classes/abstracts/ActionScheduler_Lock.php 51
return apply_filters( 'action_scheduler_lock_duration', self::$lock_duration, $lock_type );