woocommerce_order_object_updated_props хук-событиеWC 2.7.0

Action fired after updating order properties.

Использование

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.

Список изменений

С версии 2.7.0 Введена.

Где вызывается хук

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 492
do_action( 'woocommerce_order_object_updated_props', $order, $updated_props );
woocommerce/includes/data-stores/class-wc-order-data-store-cpt.php 344
do_action( 'woocommerce_order_object_updated_props', $order, $updated_props );

Где используется хук в WooCommerce

Использование не найдено.