woocommerce_version_string_generator_ttl

woocommerce_version_string_generator_ttl

Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.10.6.1

apply_filters('woocommerce_version_string_generator_ttl') is found 1 times:

  • /src/Internal/Caches/VersionStringGenerator.php line 135
    		 * @param string $id  The ID.
    		 *
    		 * @since 10.4.0
    		 */
    		$ttl = apply_filters( 'woocommerce_version_string_generator_ttl', DAY_IN_SECONDS, $id );
    		$ttl = max( 0, (int) $ttl );
    
    		$result = wp_cache_set( $cache_key, $version, self::CACHE_GROUP, $ttl );
    
    		if ( is_bool( $result ) ) {
    			return $result;