action_scheduler_pastdue_actions_check

action_scheduler_pastdue_actions_check

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('action_scheduler_pastdue_actions_check') is found 1 times:

  • /packages/action-scheduler/classes/ActionScheduler_AdminView.php line 182
    			$num_pastdue_actions = (int) $store->query_actions( $query_args, 'count' );
    
    			// Check if past-due actions count is greater than or equal to threshold.
    			$check = ( $num_pastdue_actions >= $threshold_min );
    			$check = (bool) apply_filters( 'action_scheduler_pastdue_actions_check', $check, $num_pastdue_actions, $threshold_seconds, $threshold_min );
    		}
    
    		// If check failed, set transient and abort.
    		if ( ! boolval( $check ) ) {
    			$interval = apply_filters( 'action_scheduler_pastdue_actions_check_interval', round( $threshold_seconds / 4 ), $threshold_seconds );
    			set_transient( 'action_scheduler_last_pastdue_actions_check', time(), $interval );