woocommerce_order_partially_refunded хук-событиеWC 6.7.0

Trigger notification emails.

Filter hook to modify the partially-refunded status conditions.

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

add_action( 'woocommerce_order_partially_refunded', 'wp_kama_woocommerce_order_partially_refunded_action', 10, 2 );

/**
 * Function for `woocommerce_order_partially_refunded` action-hook.
 * 
 * @param bool $is_partially_refunded Whether the order is partially refunded.
 * @param int  $order_id              The order id.
 *
 * @return void
 */
function wp_kama_woocommerce_order_partially_refunded_action( $is_partially_refunded, $order_id ){

	// action...
}
$is_partially_refunded(true|false)
Whether the order is partially refunded.
$order_id(int)
The order id.

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

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

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

wc_create_refund()
woocommerce_order_partially_refunded
woocommerce/includes/wc-order-functions.php 624
do_action( 'woocommerce_order_partially_refunded', $order->get_id(), $refund->get_id() );

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

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