wp_prime_option_caches_by_group

The timeline below displays how wordpress function wp_prime_option_caches_by_group has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 6.4

/**
 * Primes the cache of all options registered with a specific option group.
 *
 * @since 6.4.0
 *
 * @global array $new_allowed_options
 *
 * @param string $option_group The option group to load options for.
 */
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]);
    }
}