woocommerce_order_partially_refunded

woocommerce_order_partially_refunded

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

do_action('woocommerce_order_partially_refunded') is found 1 times:

  • /includes/wc-order-functions.php line 707
    703
    704
    705
    706
    707
    708
    709
    710
    711
    712
    713
    * @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() );
     
        /**
         * Filter the status to set the order to when fully refunded.
         *