Automattic\WooCommerce\StoreApi\Routes\V1

ProductBrands::get_route_responseprotectedWC 1.0

Get a collection of terms.

Method of the class: ProductBrands{}

No Hooks.

Returns

\WP_REST_Response.

Usage

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

ProductBrands::get_route_response() code WC 9.9.3

protected function get_route_response( \WP_REST_Request $request ) {
	return $this->get_terms_response( 'product_brand', $request );
}