woocommerce_process_shop_order_meta
Save meta for shop order.
Использование
add_action( 'woocommerce_process_shop_order_meta', 'wp_kama_woocommerce_process_shop_order_meta_action', 10, 2 ); /** * Function for `woocommerce_process_shop_order_meta` action-hook. * * @param int $order_id Order ID. * @param \WC_Order $order Post object. * * @return void */ function wp_kama_woocommerce_process_shop_order_meta_action( $order_id, $order ){ // action... }
- $order_id(int)
- Order ID.
- $order(\WC_Order)
- Post object.
Список изменений
С версии 2.1.0 | Введена. |
Где вызывается хук
woocommerce_process_shop_order_meta
woocommerce_process_shop_order_meta
woocommerce/src/Internal/Admin/Orders/Edit.php 313
do_action( 'woocommerce_process_shop_order_meta', $this->order->get_id(), $this->order );
woocommerce/includes/admin/class-wc-admin-meta-boxes.php 263
do_action( 'woocommerce_process_shop_order_meta', $post_id, $post );
Где используется хук в WooCommerce
woocommerce/includes/tracks/events/class-wc-orders-tracking.php 23
add_action( 'woocommerce_process_shop_order_meta', array( $this, 'track_order_action' ), 51 );
woocommerce/includes/tracks/events/class-wc-orders-tracking.php 31
add_action( 'woocommerce_process_shop_order_meta', array( $this, 'track_created_date_change' ), 10 );
woocommerce/src/Internal/Admin/Orders/Edit.php 104
add_action( 'woocommerce_process_shop_order_meta', 'WC_Meta_Box_Order_Items::save', 10 );
woocommerce/src/Internal/Admin/Orders/Edit.php 105
add_action( 'woocommerce_process_shop_order_meta', 'WC_Meta_Box_Order_Downloads::save', 30, 2 );
woocommerce/src/Internal/Admin/Orders/Edit.php 106
add_action( 'woocommerce_process_shop_order_meta', 'WC_Meta_Box_Order_Data::save', 40 );
woocommerce/src/Internal/Admin/Orders/Edit.php 107
add_action( 'woocommerce_process_shop_order_meta', 'WC_Meta_Box_Order_Actions::save', 50, 2 );