Automattic\WooCommerce\Internal\ProductFilters\Interfaces

FilterUrlParam{}interfaceWC 1.0

Interface for filter URL parameters.

No Hooks.

Usage

$FilterUrlParam = new FilterUrlParam();
// use class methods

Methods

  1. public get_param( string $type )
  2. public get_param_keys()

FilterUrlParam{} code WC 10.3.3

interface FilterUrlParam {
	/**
	 * Get the param keys.
	 *
	 * @return array
	 */
	public function get_param_keys(): array;

	/**
	 * Get the param.
	 *
	 * @param string $type The type of param to get.
	 * @return array
	 */
	public function get_param( string $type ): array;
}