woocommerce_restock_refunded_item хук-событиеWC 1.0

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

add_action( 'woocommerce_restock_refunded_item', 'wp_kama_woocommerce_restock_refunded_item_action', 10, 5 );

/**
 * Function for `woocommerce_restock_refunded_item` action-hook.
 * 
 * @param  $product_id 
 * @param  $old_stock  
 * @param  $new_stock  
 * @param  $order      
 * @param  $product    
 *
 * @return void
 */
function wp_kama_woocommerce_restock_refunded_item_action( $product_id, $old_stock, $new_stock, $order, $product ){

	// action...
}
$product_id
-
$old_stock
-
$new_stock
-
$order
-
$product
-

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

wc_restock_refunded_items()
woocommerce_restock_refunded_item
woocommerce/includes/wc-order-functions.php 754
do_action( 'woocommerce_restock_refunded_item', $product->get_id(), $old_stock, $new_stock, $order, $product );

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

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