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.9.8.1

do_action('woocommerce_process_shop_order_meta') is found 2 times:

  • /includes/admin/class-wc-admin-meta-boxes.php line 263
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
         * @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 318
    314
    315
    316
    317
    318
    319
    320
    321
    322
    323
    * @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: