Automattic\WooCommerce\StoreApi\Routes\V1\Ucp
CatalogLookup::get_request_args
Request body arguments accepted by this route.
ids is deliberately not marked required: a missing list answers with the UCP VALIDATION_ERROR envelope rather than rest_missing_callback_param.
Метод класса: CatalogLookup{}
Хуков нет.
Возвращает
array.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->get_request_args(): array;
Код CatalogLookup::get_request_args() CatalogLookup::get request args WC 11.3.0
protected function get_request_args(): array {
return array_merge(
parent::get_request_args(),
array(
'ids' => array(
'description' => __( 'Product or variant identifiers to look up.', 'woocommerce' ),
'type' => 'array',
'items' => array( 'type' => array( 'string', 'integer' ) ),
),
)
);
}