action_scheduler_pastdue_actions_seconds
Check past-due actions, and print notice.
Использование
add_filter( 'action_scheduler_pastdue_actions_seconds', 'wp_kama_action_scheduler_pastdue_actions_seconds_filter' ); /** * Function for `action_scheduler_pastdue_actions_seconds` filter-hook. * * @param $DAY_IN_SECONDS * * @return */ function wp_kama_action_scheduler_pastdue_actions_seconds_filter( $DAY_IN_SECONDS ){ // filter... return $DAY_IN_SECONDS; }
- $DAY_IN_SECONDS
- -
Где вызывается хук
action_scheduler_pastdue_actions_seconds
woocommerce/packages/action-scheduler/classes/ActionScheduler_AdminView.php 147
$threshold_seconds = ( int ) apply_filters( 'action_scheduler_pastdue_actions_seconds', DAY_IN_SECONDS );