WordPress at Your Fingertips
function is not described

Automattic\WooCommerce\Blocks\StoreApi\Routes

AbstractRoute::get_route_update_response() protected WC 1.0

Get route response for PUT requests.

When implemented, should return a \WP_REST_Response.

{} It's a method of the class: AbstractRoute{}

No Hooks.

Return

null. Nothing.

Usage

// protected - for code of main (parent) or child class
$result = $this->get_route_update_response( $request );
$request(WP_REST_Request) (required)
Request object.

Code of AbstractRoute::get_route_update_response() WC 5.8.0

protected function get_route_update_response( \WP_REST_Request $request ) {
	throw new RouteException( 'woocommerce_rest_invalid_endpoint', __( 'Method not implemented', 'woocommerce' ), 404 );
}