Function: wp_load_core_site_options

wp_load_core_site_options( integer $network_id )

Loads and caches certain often requested site options if is_multisite() and a persistent cache is not being used.

Shortcut: wlcso

You can use above key combination to trigger the associated snippet for this function in the WordPress Snippets for Visual Studio Code extension. You can also use this shortcut to search for this function on this website.

Parameters

Name Type(s) Default Value Description
$network_id integer null

Optional site ID for which to query the options. Defaults to the current site.

WordPress Developer Newsletter

Stay informed of new chapter releases, important WordPress API updates and more.