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

Fires when the order is synced with cart data from a cart route.

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

add_action( 'woocommerce_store_api_cart_update_order_from_request', 'wp_kama_woocommerce_store_api_cart_update_order_from_request_action', 10, 2 );

/**
 * Function for `woocommerce_store_api_cart_update_order_from_request` action-hook.
 * 
 * @param \WC_Order    $draft_order Order object.
 * @param \WC_Customer $customer    Customer object.
 *
 * @return void
 */
function wp_kama_woocommerce_store_api_cart_update_order_from_request_action( $draft_order, $customer ){

	// action...
}
$draft_order(\WC_Order)
Order object.
$customer(\WC_Customer)
Customer object.

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

AbstractCartRoute::cart_updated()
woocommerce_store_api_cart_update_order_from_request
woocommerce/packages/woocommerce-blocks/src/StoreApi/Routes/V1/AbstractCartRoute.php 155
do_action( 'woocommerce_store_api_cart_update_order_from_request', $draft_order, $request );

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

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