woocommerce_api_order_response

woocommerce_api_order_response

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: woocommerce.8.9.3

apply_filters('woocommerce_api_order_response') is found 3 times:

  • /includes/legacy/api/v1/class-wc-api-orders.php line 233
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
                'amount' => wc_format_decimal( $coupon_item->get_discount(), 2 ),
            );
        }
     
        return array( 'order' => apply_filters( 'woocommerce_api_order_response', $order_data, $order, $fields, $this->server ) );
    }
     
    /**
     * Get the total number of orders
     *
     * @since 2.1
  • /includes/legacy/api/v2/class-wc-api-orders.php line 282
    278
    279
    280
    281
    282
    283
    284
    285
    286
    287
    288
                'amount' => wc_format_decimal( $coupon_item->get_discount(), $dp ),
            );
        }
     
        return array( 'order' => apply_filters( 'woocommerce_api_order_response', $order_data, $order, $fields, $this->server ) );
    }
     
    /**
     * Get the total number of orders
     *
     * @since 2.4
  • /includes/legacy/api/v3/class-wc-api-orders.php line 319
    316
    317
    318
    319
    320
    321
    322
    323
    324
    325
            $order_data['coupon_lines'][] = $coupon_line;
        }
     
        return array( 'order' => apply_filters( 'woocommerce_api_order_response', $order_data, $order, $fields, $this->server ) );
    }
     
    /**
     * Get the total number of orders
     *
     * @since 2.4

See this hook used in plugins: