woocommerce_api_edit_order_data

woocommerce_api_edit_order_data

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.8.9.3

apply_filters('woocommerce_api_edit_order_data') is found 2 times:

  • /includes/legacy/api/v2/class-wc-api-orders.php line 517
    513
    514
    515
    516
    517
    518
    519
    520
    521
    522
    if ( is_wp_error( $id ) ) {
        return $id;
    }
     
    $data  = apply_filters( 'woocommerce_api_edit_order_data', $data, $id, $this );
    $order = wc_get_order( $id );
     
    if ( empty( $order ) ) {
        throw new WC_API_Exception( 'woocommerce_api_invalid_order_id', __( 'Order ID is invalid', 'woocommerce' ), 400 );
    }
  • /includes/legacy/api/v3/class-wc-api-orders.php line 555
    551
    552
    553
    554
    555
    556
    557
    558
    559
    560
    if ( is_wp_error( $id ) ) {
        return $id;
    }
     
    $data  = apply_filters( 'woocommerce_api_edit_order_data', $data, $id, $this );
    $order = wc_get_order( $id );
     
    if ( empty( $order ) ) {
        throw new WC_API_Exception( 'woocommerce_api_invalid_order_id', __( 'Order ID is invalid', 'woocommerce' ), 400 );
    }