woocommerce_order_is_partially_refunded

woocommerce_order_is_partially_refunded

Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

apply_filters('woocommerce_order_is_partially_refunded') is found 1 times:

  • /includes/wc-order-functions.php line 650
    			 * @param bool $is_partially_refunded Whether the order is partially refunded.
    			 * @param int  $order_id The order id.
    			 * @param int  $refund_id The refund id.
    			 */
    			if ( (bool) apply_filters( 'woocommerce_order_is_partially_refunded', ( $remaining_refund_amount - $args['amount'] ) > 0 || ( $order->has_free_item() && ( $remaining_refund_items - $refund_item_count ) > 0 ), $order->get_id(), $refund->get_id() ) ) {
    				do_action( 'woocommerce_order_partially_refunded', $order->get_id(), $refund->get_id() );
    			} else {
    				do_action( 'woocommerce_order_fully_refunded', $order->get_id(), $refund->get_id() );
    
    				$parent_status = apply_filters( 'woocommerce_order_fully_refunded_status', 'refunded', $order->get_id(), $refund->get_id() );