woocommerce_process_shop_order_meta

woocommerce_process_shop_order_meta

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

do_action('woocommerce_process_shop_order_meta') is found 2 times:

  • /includes/admin/class-wc-admin-meta-boxes.php line 263
    			 * @param object $post Post object.
    			 *
    			 * @since 2.1.0
    			 */
    			do_action( 'woocommerce_process_shop_order_meta', $post_id, $post );
    		} elseif ( in_array( $post->post_type, array( 'product', 'shop_coupon' ), true ) ) {
    			/**
    			 * Save meta for product.
    			 *
    			 * @param int $post_id Post ID.
    			 * @param object $post Post object.
    
  • /src/Internal/Admin/Orders/Edit.php line 313
    		 * @param \WC_Order Post object.
    		 *
    		 * @since 2.1.0
    		 */
    		do_action( 'woocommerce_process_shop_order_meta', $this->order->get_id(), $this->order );
    
    		$this->custom_meta_box->handle_metadata_changes($this->order);
    
    		// Order updated message.
    		$this->message = 1;
    
    

See this hook used in plugins: