Automattic\WooCommerce\StoreApi\Routes\V1
ProductBrands::get_route_response
Get a collection of terms.
Метод класса: ProductBrands{}
Хуков нет.
Возвращает
\WP_REST_Response.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->get_route_response( $request );
- $request(WP_REST_Request) (обязательный)
- Request object.
Код ProductBrands::get_route_response() ProductBrands::get route response WC 11.0.1
protected function get_route_response( \WP_REST_Request $request ) {
return $this->get_terms_response( 'product_brand', $request );
}