pre_cache_alloptions filter-hookWP 4.9.0

Filters all options before caching them.

Usage

add_filter( 'pre_cache_alloptions', 'wp_kama_pre_cache_alloptions_filter' );

/**
 * Function for `pre_cache_alloptions` filter-hook.
 * 
 * @param array $alloptions Array with all options.
 *
 * @return array
 */
function wp_kama_pre_cache_alloptions_filter( $alloptions ){

	// filter...
	return $alloptions;
}
$alloptions(array)
Array with all options.

Changelog

Since 4.9.0 Introduced.

Where the hook is called

wp_load_alloptions()
pre_cache_alloptions
wp-includes/option.php 307
$alloptions = apply_filters( 'pre_cache_alloptions', $alloptions );

Where the hook is used in WordPress

Usage not found.