woocommerce_delete_order

woocommerce_delete_order

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

See hook in core

Displaying hooks found in version: woocommerce.9.3.3

do_action('woocommerce_delete_order') is found 2 times:

  • /includes/data-stores/abstract-wc-order-data-store-cpt.php line 306
    				 * @since 2.7.0
    				 *
    				 * @param int $order_id ID of the order that has been deleted.
    				 */
    				do_action( 'woocommerce_delete_order', $id );
    			}
    		} else {
    			if ( $do_filters ) {
    				/**
    				 * Fires immediately before an order is trashed.
    				 *
    
  • /src/Internal/DataStores/Orders/OrdersTableDataStore.php line 2238
    				 * @since 2.7.0
    				 *
    				 * @param int $order_id ID of the order that has been deleted.
    				 */
    				do_action( 'woocommerce_delete_order', $order_id ); // phpcs:ignore WooCommerce.Commenting.CommentHooks.MissingHookComment
    			}
    		} else {
    			if ( $do_filters ) {
    				/**
    				 * Fires immediately before an order is trashed.
    				 *
    

See this hook used in plugins: