A WordPress-centric search engine for devs and theme authors



get_site_option ›

Since2.8.0
Deprecatedn/a
get_site_option ( $option, $default = false, $deprecated = true )
Parameters: (3)
  • (string) $option Name of option to retrieve. Expected to not be SQL-escaped.
    Required: Yes
  • (mixed) $default Optional value to return if option doesn't exist. Default false.
    Required: No
    Default: false
  • (bool) $deprecated Whether to use cache. Multisite only. Always set to true.
    Required: No
    Default: true
See:
Returns:
  • (mixed) Value set for the option.
Defined at:
Codex:
Change Log:
  • 4.4.0 Modified into wrapper for get_network_option()
  • 4.4.0 The ` $use_cache` parameter was deprecated.

Retrieve an option value for the current network based on name of option.



Source

function get_site_option( $option, $default = false, $deprecated = true ) {
	return get_network_option( null, $option, $default );
}