woocommerce_new_order хук-событиеWC 1.0

Использование

add_action( 'woocommerce_new_order', 'wp_kama_woocommerce_new_order_action', 10, 2 );

/**
 * Function for `woocommerce_new_order` action-hook.
 * 
 * @param  $order_id 
 * @param  $order    
 *
 * @return void
 */
function wp_kama_woocommerce_new_order_action( $order_id, $order ){

	// action...
}
$order_id
-
$order
-

Где вызывается хук

WC_Order_Data_Store_CPT::create()
woocommerce_new_order
WC_Order_Data_Store_CPT::update()
woocommerce_new_order
WC_API_Orders::create_order()
woocommerce_new_order
woocommerce/includes/data-stores/class-wc-order-data-store-cpt.php 111
do_action( 'woocommerce_new_order', $order->get_id(), $order );
woocommerce/includes/data-stores/class-wc-order-data-store-cpt.php 195
do_action( 'woocommerce_new_order', $order->get_id(), $order );
woocommerce/includes/legacy/api/v3/class-wc-api-orders.php 505
do_action( 'woocommerce_new_order', $order->get_id() );
woocommerce/includes/legacy/api/v2/class-wc-api-orders.php 465
do_action( 'woocommerce_new_order', $order->get_id() );

Где используется хук в WooCommerce

Использование не найдено.