首页 WordPress函数大全 add_network_option()

add_network_option()

2020-05-01 / 2550阅 / 悠然

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

add_network_option( int $network_id, string $option, mixed $value )

Adds a new network option.

描述

Existing options will not be updated.

See also See also

  • add_option()

Top ↑

参数

$network_id

(int)
(Required)
ID of the network. Can be null to default to the current network ID.

$option

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

$value

(mixed)
(Required)
Option value, can be anything. Expected to not be SQL-escaped.

返回

(bool) False if option was not added and true if option was added.

大家谈论
    我的见解