wp_prime_option_caches_by_group( string $option_group )

In this article

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

Parameters

$option_groupstringrequired
The option group to load options for.

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 ] );
	}
}

Changelog

VersionDescription
6.4.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.