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.

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 on top of the latest WordPress API changes, developer tool updates, security alerts and more.