woocommerce_order_partially_refunded
Trigger notification emails.
Filter hook to modify the partially-refunded status conditions.
Usage
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.
Changelog
Since 6.7.0 | Introduced. |
Where the hook is called
woocommerce_order_partially_refunded
woocommerce/includes/wc-order-functions.php 674
do_action( 'woocommerce_order_partially_refunded', $order->get_id(), $refund->get_id() );