Automattic\WooCommerce\Internal\ProductFilters

FilterData::get_params_for_cache │ private │ WC 1.0

Get the complete parameter map in a stable order for cache keys.

Method of the class: FilterData{}

No Hooks.

Returns

array. Filter types mapped to their URL parameters.

Usage

// private - for code of main (parent) class only
$result = $this->get_params_for_cache(): array;

FilterData::get_params_for_cache() code WC 11.3.0

private function get_params_for_cache(): array {
	$params = $this->params->get_params();
	foreach ( $params as &$type_params ) {
		ksort( $type_params );
	}
	unset( $type_params );
	ksort( $params );

	return $params;
}