woocommerce_invalid_cache_prefix_detected
Fires when WooCommerce detects an invalid cache prefix before replacing it.
Usage
add_action( 'woocommerce_invalid_cache_prefix_detected', 'wp_kama_woocommerce_invalid_cache_prefix_detected_action', 10, 2 );
/**
* Function for `woocommerce_invalid_cache_prefix_detected` action-hook.
*
* @param string $group Cache group.
* @param mixed $prefix Invalid cached prefix value.
*
* @return void
*/
function wp_kama_woocommerce_invalid_cache_prefix_detected_action( $group, $prefix ){
// action...
}
- $group(string)
- Cache group.
- $prefix(mixed)
- Invalid cached prefix value.
Changelog
| Since 10.8.0 | Introduced. |
Where the hook is called
In file: /src/Caching/CacheNameSpaceTrait.php
woocommerce_invalid_cache_prefix_detected
woocommerce/src/Caching/CacheNameSpaceTrait.php 42
do_action( 'woocommerce_invalid_cache_prefix_detected', $group, $prefix );