WordPress filter hook
cache_enabler_before_store
Defined by Cache Enabler and fired by 2 plugins in total, running on 100K+ sites between them.
How to use cache_enabler_before_store
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:
add_filter( 'cache_enabler_before_store', function( $page_contents ) {
// Change $page_contents here.
return $page_contents;
}, 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.
2 plugins that fire cache_enabler_before_store
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
Cache Enabler100,000+ installs
apply_filters_deprecated( 'cache_enabler_before_store', array( $page_contents ), '1.6.0', 'cache_enabler_page_contents_before_store' )inc/cache_enabler_disk.class.php:93 -
AIO Performance Profiler, Monitor, Optimize, Compress & Debug10+ installs
apply_filters( 'cache_enabler_before_store', $page_contents )includes/smack_cache_engine.php:138
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.