wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



get_site_option › WordPress Function

Da2.8.0
Deprecaton/a
get_site_option ( $option, $default_value = false, $deprecated = true )
Parametri: (3)
  • (string) $option Name of the option to retrieve. Expected to not be SQL-escaped.
    Richiesto:
  • (mixed) $default_value Optional. Value to return if the option doesn't exist. Default false.
    Richiesto: No
    Default: false
  • (bool) $deprecated Whether to use cache. Multisite only. Always set to true.
    Richiesto: No
    Default: true
Vedi:
Ritorna:
  • (mixed) Value set for the option.
Definito a:
Codex:
ChangeLog:
  • 4.4.0
  • 4.4.0

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



Sorgenti

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