wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



wp_load_core_site_options › WordPress Function

Da3.0.0
Deprecaton/a
› wp_load_core_site_options ( $network_id = null )
Parametri:
  • (int) $network_id Optional. Network ID of network for which to prime network options cache. Defaults to current network.
    Richiesto: No
    Default: null
Definito a:
Codex:
ChangeLog:
  • 6.3.0
  • 6.6.0

Loads and primes caches of certain often requested network options if is_multisite().



Sorgenti

function wp_load_core_site_options( $network_id = null ) {
	if ( ! is_multisite() || wp_installing() ) {
		return;
	}
	$core_options = array( 'site_name', 'siteurl', 'active_sitewide_plugins', '_site_transient_timeout_theme_roots', '_site_transient_theme_roots', 'site_admins', 'global_terms_enabled', 'ms_files_rewriting', 'WPLANG' );

	wp_prime_network_option_caches( $network_id, $core_options );
}