首页 WordPress函数大全 get_site_option()

get_site_option()

2020-05-01 / 2594阅 / 悠然

如何你看完本文还不知道如何使用该函数,可以联系我定制视频教程,50元/个函数,学不会全额退款

get_site_option( string $option, mixed $default = false, bool $deprecated = true )

Retrieve an option value for the current network based>

Contents

  • Description
    • See also
    • Parameters
    • Return
    • Source
    • Changelog
  • Related
    • Uses
    • Used By
  • User Contributed Notes

描述

See also See also

  • get_network_option()

Top ↑

参数

$option

(string)
(Required)
Name of option to retrieve. Expected to not be SQL-escaped.

$default

(mixed)
(Optional)
value to return if option doesn't exist.

Default value: false

$deprecated

(bool)
(Optional)
Whether to use cache. Multisite>Default value: true

返回

(mixed) Value set for the option.

大家谈论
    我的见解