WordPress at Your Fingertips
function is not described

WC_REST_Product_Attributes_V1_Controller::get_collection_params() public WC 1.0

Get the query params for collections

{} It's a method of the class: WC_REST_Product_Attributes_V1_Controller{}

No Hooks.

Return

Array.

Usage

$WC_REST_Product_Attributes_V1_Controller = new WC_REST_Product_Attributes_V1_Controller();
$WC_REST_Product_Attributes_V1_Controller->get_collection_params();

Code of WC_REST_Product_Attributes_V1_Controller::get_collection_params() WC 5.9.0

public function get_collection_params() {
	$params            = array();
	$params['context'] = $this->get_context_param( array( 'default' => 'view' ) );

	return $params;
}