woocommerce_product_query_max_rand_cache_count filter-hookWC 1.0

Usage

add_filter( 'woocommerce_product_query_max_rand_cache_count', 'wp_kama_woocommerce_product_query_max_rand_cache_count_filter' );

/**
 * Function for `woocommerce_product_query_max_rand_cache_count` filter-hook.
 * 
 * @param  $5 
 *
 * @return 
 */
function wp_kama_woocommerce_product_query_max_rand_cache_count_filter( $5 ){

	// filter...
	return $5;
}
$5
-

Where the hook is called

WC_Shortcode_Products::get_transient_name()
woocommerce_product_query_max_rand_cache_count
woocommerce/includes/shortcodes/class-wc-shortcode-products.php 550
$rand_index      = wp_rand( 0, max( 1, absint( apply_filters( 'woocommerce_product_query_max_rand_cache_count', 5 ) ) ) );

Where the hook is used in WooCommerce

Usage not found.