Core Function
View Source on Trac ↗ get_site_option()
get_site_option( mixed $option, mixed $default_value = false, mixed $deprecated = true ) Retrieve an option value for the current network based on name of option.
Parameters 1 required
| Name / Type | Description |
|---|---|
| $option string | Name of the option to retrieve. Expected to not be SQL-escaped. Required |
| $default_value mixed | Optional. Value to return if the option doesn't exist. Default false. |
| $deprecated bool | Whether to use cache. Multisite only. Always set to true. |
Return Value
(mixed)
Value set for the option.
Function Information
Since Version
2.8.0
Source File
wp-includes/option.php
Advertisement