cached_mobile_groups
Использование
add_filter( 'cached_mobile_groups', 'wp_kama_cached_mobile_groups_filter' ); /** * Function for `cached_mobile_groups` filter-hook. * * @param $array * * @return */ function wp_kama_cached_mobile_groups_filter( $array ){ // filter... return $array; }
- $array
- -
Где вызывается хук
wp-super-cache/wp-cache.php 994
$mobile_groups = apply_filters( 'cached_mobile_groups', array() ); // Group mobile user agents by capabilities. Lump them all together by default