action_scheduler_deleted_action

action_scheduler_deleted_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_deleted_action') is found 2 times:

  • /packages/action-scheduler/classes/data-stores/ActionScheduler_DBStore.php line 803
    799
    800
    801
    802
    803
    804
    805
    806
    807
    808
    809
        if ( empty( $deleted ) ) {
            /* translators: %s is the action ID */
            throw new \InvalidArgumentException( sprintf( __( 'Unidentified action %s: we were unable to delete this action. It may may have been deleted by another process.', 'woocommerce' ), $action_id ) );
        }
        do_action( 'action_scheduler_deleted_action', $action_id );
    }
     
    /**
     * Get the schedule date for an action.
     *
     * @param string $action_id Action ID.
  • /packages/action-scheduler/classes/data-stores/ActionScheduler_wpPostStore.php line 536
    532
    533
    534
    535
    536
    537
    538
    539
    540
    541
    542
        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 delete this action. It may may have been deleted by another process.', 'woocommerce' ), $action_id ) );
        }
        do_action( 'action_scheduler_deleted_action', $action_id );
     
        wp_delete_post( $action_id, true );
    }
     
    /**
     * Get date for claim id.

See this hook used in plugins: