Automattic\WooCommerce\StoreApi\Routes\V1
ProductAttributeTerms::get_collection_params()
Get the query params for collections of attributes.
Method of the class: ProductAttributeTerms{}
No Hooks.
Return
Array
.
Usage
$ProductAttributeTerms = new ProductAttributeTerms(); $ProductAttributeTerms->get_collection_params();
ProductAttributeTerms::get_collection_params() ProductAttributeTerms::get collection params code WC 9.3.3
public function get_collection_params() { $params = parent::get_collection_params(); $params['orderby']['enum'][] = 'menu_order'; $params['orderby']['enum'][] = 'name_num'; $params['orderby']['enum'][] = 'id'; return $params; }