wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



wp_load_core_site_options › WordPress Function

Od3.0.0
Przestarzałyn/a
› wp_load_core_site_options ( $network_id = null )
Parametry:
  • (int) $network_id Optional. Network ID of network for which to prime network options cache. Defaults to current network.
    Wymagane: Nie
    Domyślny: null
Zdefiniowane na:
Codex:
Dziennik zmian:
  • 6.3.0
  • 6.6.0

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



Źródło

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