Automattic\WooCommerce\StoreApi\Routes\V1
ProductCollectionData::get_args
Get method arguments for this REST route.
Method of the class: ProductCollectionData{}
No Hooks.
Returns
Array. An array of endpoints.
Usage
$ProductCollectionData = new ProductCollectionData(); $ProductCollectionData->get_args();
ProductCollectionData::get_args() ProductCollectionData::get args code WC 10.8.1
public function get_args() {
return [
[
'methods' => \WP_REST_Server::READABLE,
'callback' => [ $this, 'get_response' ],
'permission_callback' => '__return_true',
'args' => $this->get_collection_params(),
'allow_batch' => [ 'v1' => true ],
],
'schema' => [ $this->schema, 'get_public_item_schema' ],
];
}