Automattic\WooCommerce\Admin\API
Taxes::get_collection_params
Get the query params for collections.
Method of the class: Taxes{}
No Hooks.
Returns
Array.
Usage
$Taxes = new Taxes(); $Taxes->get_collection_params();
Taxes::get_collection_params() Taxes::get collection params code WC 10.6.2
public function get_collection_params() {
$params = parent::get_collection_params();
$params['search'] = array(
'description' => __( 'Search by similar tax code.', 'woocommerce' ),
'type' => 'string',
'validate_callback' => 'rest_validate_request_arg',
);
$params['include'] = array(
'description' => __( 'Limit result set to items that have the specified rate ID(s) assigned.', 'woocommerce' ),
'type' => 'array',
'items' => array(
'type' => 'integer',
),
'default' => array(),
'validate_callback' => 'rest_validate_request_arg',
);
return $params;
}