get_site_option


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

Parameters:
  • (string) option Name of the option to retrieve. Expected to not be SQL-escaped.
  • (mixed) default_value Optional. Value to return if the 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, add_site_option, get_option, update_site_option

Top Google Results

User discussions

wpseek mobile