wpseek.com
A WordPress-centric search engine for devs and theme authors



wp_prime_option_caches_by_group › WordPress Function

Since6.4.0
Deprecatedn/a
wp_prime_option_caches_by_group ( $option_group )
Parameters:
  • (string) $option_group The option group to load options for.
    Required: Yes
Defined at:
Codex:

Primes the cache of all options registered with a specific option group.



Source

function wp_prime_option_caches_by_group( $option_group ) {
	global $new_allowed_options;

	if ( isset( $new_allowed_options[ $option_group ] ) ) {
		wp_prime_option_caches( $new_allowed_options[ $option_group ] );
	}
}