action_scheduler_canceled_action

action_scheduler_canceled_action

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: woocommerce.9.7.1

do_action('action_scheduler_canceled_action') is found 2 times:

  • /packages/action-scheduler/classes/data-stores/ActionScheduler_DBStore.php line 701
    697
    698
    699
    700
    701
    702
    703
    704
    705
    706
    707
        if ( false === $updated ) {
            /* translators: %s: action ID */
            throw new \InvalidArgumentException( sprintf( __( 'Unidentified action %s: we were unable to cancel this action. It may may have been deleted by another process.', 'woocommerce' ), $action_id ) );
        }
        do_action( 'action_scheduler_canceled_action', $action_id );
    }
     
    /**
     * Cancel pending actions by hook.
     *
     * @since 3.0.0
  • /packages/action-scheduler/classes/data-stores/ActionScheduler_wpPostStore.php line 517
    513
    514
    515
    516
    517
    518
    519
    520
    521
    522
    523
        if ( empty( $post ) || ( self::POST_TYPE !== $post->post_type ) ) {
            /* translators: %s is the action ID */
            throw new InvalidArgumentException( sprintf( __( 'Unidentified action %s: we were unable to cancel this action. It may may have been deleted by another process.', 'woocommerce' ), $action_id ) );
        }
        do_action( 'action_scheduler_canceled_action', $action_id );
        add_filter( 'pre_wp_unique_post_slug', array( $this, 'set_unique_post_slug' ), 10, 5 );
        wp_trash_post( $action_id );
        remove_filter( 'pre_wp_unique_post_slug', array( $this, 'set_unique_post_slug' ), 10 );
    }
     
    /**

See this hook used in plugins: