woocommerce_checkout_order_processed

The WooCommerce woocommerce checkout order processed hook.

Description

do_action( 'woocommerce_checkout_order_processed', (unknown) $order_id, (unknown) $posted_data, (unknown) $order ); 

Parameters (3)

0. $order_id (unknown)
The order id.
1. $posted_data (unknown)
The posted data.
2. $order (unknown)
The order.

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'woocommerce_checkout_order_processed', $order_id, $posted_data, $order ); 
The following example is for adding a hook callback.
  1. // define the woocommerce_checkout_order_processed callback 
  2. function action_woocommerce_checkout_order_processed( $order_id, $posted_data, $order ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( 'woocommerce_checkout_order_processed', 'action_woocommerce_checkout_order_processed', 10, 3 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( 'woocommerce_checkout_order_processed', 'action_woocommerce_checkout_order_processed', 10, 3 ); 

Defined (1)

The action is defined in the following location(s).

/includes/class-wc-checkout.php  
  1. do_action( 'woocommerce_checkout_order_processed', $order_id, $posted_data, $order );