get_site_option


get_site_option ( $option, $default = false, $deprecated = true )

Parameters:
  • (string) $option Name of option to retrieve. Expected to not be SQL-escaped.
  • (mixed) $default Optional value to return if option doesn't exist. Default false.
  • (bool) $deprecated Whether to use cache. Multisite only. Always set to true.
See:
Returns:
  • (mixed) Value set for the option.
Defined at:
Change Log:
  • 4: .
  • 4: .

Description

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

Related Functions

get_user_option, delete_site_option, get_option, add_site_option, update_site_option

Top Google Results

User discussions

wpseek mobile