WPDev.one
Core Function
View Source on Trac ↗

wp_prime_network_option_caches()

wp_prime_network_option_caches( mixed $network_id, array $options )

Primes specific network options into the cache with a single database query.

Parameters 2 required

Name / Type Description
(int

| null) $network_id ID of the network. Can be null to default to the current network ID.

Required
$options
string[]

An array of option names to be loaded.

Required

Return Value

(void)
No return value description available.

Function Information

Since Version
6.6.0
Source File
wp-includes/option.php
Advertisement