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.
Method of the class: CatalogLookup{}
No Hooks.
Returns
array.
Usage
// protected - for code of main (parent) or child class $result = $this->get_request_args(): array;
CatalogLookup::get_request_args() CatalogLookup::get request args code 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' ) ),
),
)
);
}