WordPress filter hook

cache_minify_ignore_tags

Fired by 6 WordPress plugins, running on 101K+ sites between them.

How to use cache_minify_ignore_tags

It's a filter: your callback receives the value, and must return the (changed) value. Add this to your theme's functions.php or a small custom plugin:

functions.php
add_filter( 'cache_minify_ignore_tags', function( $ignore_tags ) {
	// Change $ignore_tags here.
	return $ignore_tags;
}, 10, 1 );

Argument names come from Cache Enabler's source. Other plugins may pass different values: check the call in the plugin you're targeting below.

6 plugins that fire cache_minify_ignore_tags

Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.

  1. Cache Enabler icon Cache Enabler100,000+ installs apply_filters_deprecated( 'cache_minify_ignore_tags', array( $ignore_tags ), '1.6.0', 'cache_enabler_minify_html_ignore_tags' ) inc/cache_enabler_disk.class.php:1681
  2. RapidLoad AI icon RapidLoad AI600+ installs apply_filters_deprecated( 'cache_minify_ignore_tags', array( $ignore_tags ), RAPIDLOAD_VERSION, 'rapidload_minify_html_ignore_tags' ) includes/modules/cache/RapidLoad_Cache_Store.php:1081
  3. Cache by Folium icon Cache by Folium100+ installs apply_filters( 'cache_minify_ignore_tags', array( 'textarea', 'pre' ) ) lib/Optimisationio/CacheEnabler.php:1342
  4. Dessky Cache icon Dessky Cache50+ installs apply_filters( 'cache_minify_ignore_tags', array( 'textarea', 'pre' ) ) core/dessky_cache.php:1287
  5. AIO Performance Profiler, Monitor, Optimize, Compress & Debug icon AIO Performance Profiler, Monitor, Optimize, Compress & Debug10+ installs apply_filters( 'cache_minify_ignore_tags', array( 'textarea', 'pre', 'code' ) ) includes/smack_cache_disk.php:827
  6. Fastless Cache icon Fastless CacheFewer than 10 installs apply_filters_deprecated( 'cache_minify_ignore_tags', array($ignore_tags), '1.6.0', 'fastless_cache_minify_html_ignore_tags' ) inc/class-fastless-cache-disk.php:1807

Need a customisation built on this hook?

Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.