(handle)_params хук-фильтрWC 1.0

Использование

add_filter( '(handle)_params', 'wp_kama_handle_params_filter', 10, 2 );

/**
 * Function for `(handle)_params` filter-hook.
 * 
 * @param  $array  
 * @param  $string 
 *
 * @return 
 */
function wp_kama_handle_params_filter( $array, $string ){

	// filter...
	return $array;
}
$array
-
$string
-

Где вызывается хук

WC_Frontend_Scripts::get_script_data()
(handle)_params
woocommerce/includes/class-wc-frontend-scripts.php 622
$params = apply_filters_deprecated( $handle . '_params', array( $params ), '3.0.0', 'woocommerce_get_script_data' );

Где используется хук в WooCommerce

woocommerce/src/Blocks/BlockTypes/ProductCollection.php 77
add_filter( 'rest_product_collection_params', array( $this, 'extend_rest_query_allowed_params' ), 10, 1 );
woocommerce/src/Blocks/BlockTypes/ProductQuery.php 82
add_filter( 'rest_product_collection_params', array( $this, 'extend_rest_query_allowed_params' ), 10, 1 );