action_scheduler_check_pastdue_actions

action_scheduler_check_pastdue_actions

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

See hook in core

Displaying hooks found in version: woocommerce.9.7.1

apply_filters('action_scheduler_check_pastdue_actions') is found 1 times:

  • /packages/action-scheduler/classes/ActionScheduler_AdminView.php line 145
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    */
    public function maybe_check_pastdue_actions() {
     
        // Filter to prevent checking actions (ex: inappropriate user).
        if ( ! apply_filters( 'action_scheduler_check_pastdue_actions', current_user_can( 'manage_options' ) ) ) {
            return;
        }
     
        // Get last check transient.
        $last_check = get_transient( 'action_scheduler_last_pastdue_actions_check' );