wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



get_site_option › WordPress Function

Od2.8.0
Przestarzałyn/a
get_site_option ( $option, $default_value = false, $deprecated = true )
Parametry: (3)
  • (string) $option Name of the option to retrieve. Expected to not be SQL-escaped.
    Wymagane: Tak
  • (mixed) $default_value Optional. Value to return if the option doesn't exist. Default false.
    Wymagane: Nie
    Domyślny: false
  • (bool) $deprecated Whether to use cache. Multisite only. Always set to true.
    Wymagane: Nie
    Domyślny: true
Zobacz:
Powrót:
  • (mixed) Value set for the option.
Zdefiniowane na:
Codex:
Dziennik zmian:
  • 4.4.0
  • 4.4.0

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



Źródło

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