wp_prime_option_caches_by_group()
Primes the cache of all options registered with a specific option group.
No Hooks.
Return
null
. Nothing (null).
Usage
wp_prime_option_caches_by_group( $option_group );
- $option_group(string) (required)
- The option group to load options for.
Notes
- Global. Array. $new_allowed_options
Changelog
Since 6.4.0 | Introduced. |
wp_prime_option_caches_by_group() wp prime option caches by group code WP 6.6.2
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 ] ); } }