woocommerce_order_object_updated_props

woocommerce_order_object_updated_props

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

do_action('woocommerce_order_object_updated_props') is found 2 times:

  • /includes/data-stores/abstract-wc-order-data-store-cpt.php line 493
    489
    490
    491
    492
    493
    494
    495
    496
    497
    498
    499
         * @param string[]          $updated_props Array of updated properties.
         *
         * @since 2.7.0
         */
        do_action( 'woocommerce_order_object_updated_props', $order, $updated_props );
    }
     
    /**
     * Clear any caches.
     *
     * @param WC_Order $order Order object.
  • /includes/data-stores/class-wc-order-data-store-cpt.php line 380
    376
    377
    378
    379
    380
    381
    382
    383
    384
    385
    386
        if ( in_array( 'customer_id', $updated_props, true ) ) {
            wc_update_user_last_active( $order->get_customer_id() );
        }
     
        do_action( 'woocommerce_order_object_updated_props', $order, $updated_props );
    }
     
    /**
     * Excerpt for post.
     *
     * @param  WC_Order $order Order object.