woocommerce_cancelled_order
The WordPress Core woocommerce cancelled order hook.
Description
Parameters (1)
- 0. $order_get_id (unknown)
- The order get id.
Usage
- To run the hook, copy the example below.
- // run the action
- do_action( 'woocommerce_cancelled_order', $order_get_id );
- The following example is for adding a hook callback.
- // define the woocommerce_cancelled_order callback
- function action_woocommerce_cancelled_order( $order_get_id ) {
- // make action magic happen here...
- };
- // add the action
- add_action( 'woocommerce_cancelled_order', 'action_woocommerce_cancelled_order', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the action
- remove_action( 'woocommerce_cancelled_order', 'action_woocommerce_cancelled_order', 10, 1 );
Defined (1)
The action is defined in the following location(s).
- /includes/class-wc-form-handler.php
- do_action( 'woocommerce_cancelled_order', $order->get_id() );