Automattic\WooCommerce\StoreApi\Routes\V1
AbstractRoute::get_route_update_response()
Get route response for PUT requests.
When implemented, should return a \WP_REST_Response.
Method of the class: AbstractRoute{}
No Hooks.
Return
\WP_REST_Response
.
Usage
// protected - for code of main (parent) or child class $result = $this->get_route_update_response( $request );
- $request(\WP_REST_Request) (required)
- Request object.
AbstractRoute::get_route_update_response() AbstractRoute::get route update response code WC 9.4.2
protected function get_route_update_response( \WP_REST_Request $request ) { return $this->get_route_error_response( 'woocommerce_rest_invalid_endpoint', __( 'Method not implemented', 'woocommerce' ), 404 ); }