collection_filter_query_param_keys

collection_filter_query_param_keys

Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: woocommerce.9.2.3

apply_filters('collection_filter_query_param_keys') is found 1 times:

  • /src/Blocks/BlockTypes/ProductFilterActive.php line 226
    		 * @param array $url_param_keys    The query param parsed from the URL.
    		 *
    		 * @return array Active filters params.
    		 */
    		$filter_param_keys = array_unique( apply_filters( 'collection_filter_query_param_keys', array(), array_keys( $url_query_params ) ) );
    
    		return array_filter(
    			$url_query_params,
    			function ( $key ) use ( $filter_param_keys ) {
    				return in_array( $key, $filter_param_keys, true );
    			},
    

See this hook used in plugins: