woocommerce_updated_product_sales хук-событиеWC 3.6

Fire an action for this direct update so it can be detected by other code.


add_action( 'woocommerce_updated_product_sales', 'wp_kama_woocommerce_updated_product_sales_action' );

 * Function for `woocommerce_updated_product_sales` action-hook.
 * @param int $product_id Product ID that was updated directly.
 * @return void
function wp_kama_woocommerce_updated_product_sales_action( $product_id ){

	// action...
Product ID that was updated directly.

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

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

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

woocommerce/includes/data-stores/class-wc-product-data-store-cpt.php 1505
do_action( 'woocommerce_updated_product_sales', $product_id );

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

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