woocommerce_trash_order

woocommerce_trash_order

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

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

do_action('woocommerce_trash_order') is found 2 times:

  • /includes/data-stores/abstract-wc-order-data-store-cpt.php line 324
    				 * @since
    				 *
    				 * @param int      $order_id ID of the order that has been trashed.
    				 */
    				do_action( 'woocommerce_trash_order', $id );
    			}
    		}
    	}
    
    	/*
    	|--------------------------------------------------------------------------
    
  • /src/Internal/DataStores/Orders/OrdersTableDataStore.php line 2144
    				 * @since
    				 *
    				 * @param int $order_id ID of the order that has been trashed.
    				 */
    				do_action( 'woocommerce_trash_order', $order_id ); // phpcs:ignore WooCommerce.Commenting.CommentHooks.MissingHookComment
    			}
    		}
    	}
    
    	/**
    	 * Handles the deletion of an order from the orders table when sync is disabled:
    

See this hook used in plugins: