Automattic\WooCommerce\Internal\ProductFilters

Params::get_parampublicWC 1.0

Get the param.

Method of the class: Params{}

No Hooks.

Returns

Array.

Usage

$Params = new Params();
$Params->get_param( $type ): array;
$type(string) (required)
The type of param to get.

Params::get_param() code WC 10.3.3

public function get_param( string $type ): array {
	if ( empty( self::$params ) ) {
		$this->init_params();
	}

	return self::$params[ $type ] ?? array();
}