woocommerce_order_object_updated_props action-hookWC 2.7.0

Action fired after updating order properties.

Usage

add_action( 'woocommerce_order_object_updated_props', 'wp_kama_woocommerce_order_object_updated_props_action', 10, 2 );

/**
 * Function for `woocommerce_order_object_updated_props` action-hook.
 * 
 * @param WC_Abstract_Order $order         Order object.
 * @param string[]          $updated_props Array of updated properties.
 *
 * @return void
 */
function wp_kama_woocommerce_order_object_updated_props_action( $order, $updated_props ){

	// action...
}
$order(WC_Abstract_Order)
Order object.
$updated_props(string[])
Array of updated properties.

Changelog

Since 2.7.0 Introduced.

Where the hook is called

Abstract_WC_Order_Data_Store_CPT::update_post_meta()
woocommerce_order_object_updated_props
WC_Order_Data_Store_CPT::update_post_meta()
woocommerce_order_object_updated_props
woocommerce/includes/data-stores/abstract-wc-order-data-store-cpt.php 500
do_action( 'woocommerce_order_object_updated_props', $order, $updated_props );
woocommerce/includes/data-stores/class-wc-order-data-store-cpt.php 405
do_action( 'woocommerce_order_object_updated_props', $order, $updated_props );

Where the hook is used in WooCommerce

Usage not found.