Automattic\WooCommerce\StoreApi\Routes\V1

AbstractRoute::get_collection_params()publicWC 1.0

Retrieves the query params for the collections.

Method of the class: AbstractRoute{}

No Hooks.

Return

Array. Query parameters for the collection.

Usage

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

AbstractRoute::get_collection_params() code WC 9.4.2

public function get_collection_params() {
	return array(
		'context' => $this->get_context_param(),
	);
}