woocommerce_api_edit_order_refund

woocommerce_api_edit_order_refund

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

See hook in core

Displaying hooks found in version: woocommerce.8.9.3

do_action('woocommerce_api_edit_order_refund') is found 2 times:

  • /includes/legacy/api/v2/class-wc-api-orders.php line 1705
    1701
    1702
    1703
    1704
    1705
    1706
    1707
    1708
    1709
    1710
    1711
        if ( isset( $data['amount'] ) && 0 < $data&#91;'amount'&#93; ) {
            update_post_meta( $refund->ID, '_refund_amount', wc_format_decimal( $data['amount'] ) );
        }
     
        do_action( 'woocommerce_api_edit_order_refund', $refund->ID, $order_id, $this );
     
        return $this->get_order_refund( $order_id, $refund->ID );
    } catch ( WC_Data_Exception $e ) {
        return new WP_Error( $e->getErrorCode(), $e->getMessage(), array( 'status' => 400 ) );
    } catch ( WC_API_Exception $e ) {
        return new WP_Error( $e->getErrorCode(), $e->getMessage(), array( 'status' => $e->getCode() ) );
  • /includes/legacy/api/v3/class-wc-api-orders.php line 1750
    1746
    1747
    1748
    1749
    1750
    1751
    1752
    1753
    1754
    1755
    1756
        if ( isset( $data['amount'] ) && 0 < $data&#91;'amount'&#93; ) {
            update_post_meta( $refund->ID, '_refund_amount', wc_format_decimal( $data['amount'] ) );
        }
     
        do_action( 'woocommerce_api_edit_order_refund', $refund->ID, $order_id, $this );
     
        return $this->get_order_refund( $order_id, $refund->ID );
    } catch ( WC_Data_Exception $e ) {
        return new WP_Error( $e->getErrorCode(), $e->getMessage(), array( 'status' => 400 ) );
    } catch ( WC_API_Exception $e ) {
        return new WP_Error( $e->getErrorCode(), $e->getMessage(), array( 'status' => $e->getCode() ) );