woocommerce_payment_complete_order_status_<get_status>
The WooCommerce Billogram Integration woocommerce payment complete order status get hook.
Description
Parameters (1)
- 0. $order_id (unknown)
- The order id.
Usage
- To run the hook, copy the example below.
- // run the action
- do_action( 'woocommerce_payment_complete_order_status_{$get_status}', $order_id );
- The following example is for adding a hook callback.
- // define the woocommerce_payment_complete_order_status_<get_status> callback
- function action_woocommerce_payment_complete_order_status_get_status( $order_id ) {
- // make action magic happen here...
- };
- // add the action
- add_action( "woocommerce_payment_complete_order_status_{$get_status}", 'action_woocommerce_payment_complete_order_status_get_status', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the action
- remove_action( "woocommerce_payment_complete_order_status_{$get_status}", 'action_woocommerce_payment_complete_order_status_get_status', 10, 1 );
Defined (1)
The action is defined in the following location(s).
- /woocommerce-billogram2-extended.php
- do_action( 'woocommerce_payment_complete_order_status_' . $order->get_status(), $order->id );