WC_REST_Product_Variations_V2_Controller::prepare_objects_query()protectedWC 3.0.0

Prepare objects query.

Метод класса: WC_REST_Product_Variations_V2_Controller{}

Хуков нет.

Возвращает

Массив.

Использование

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->prepare_objects_query( $request );
$request(WP_REST_Request) (обязательный)
Full details about the request.

Список изменений

С версии 3.0.0 Введена.

Код WC_REST_Product_Variations_V2_Controller::prepare_objects_query() WC 8.7.0

protected function prepare_objects_query( $request ) {
	$args = parent::prepare_objects_query( $request );

	$args['post_parent'] = $request['product_id'];

	return $args;
}