add_network_option() wordpress function and usage This text is not used because the data attribute has a value

add_network_option() wordpress function and usage

Home / WordPress / WordPress Wiki / add_network_option() wordpress function and usage

add_network_option( int $network_id, string $option, mixed $value )
Adds a new network option.

Description

Existing options will not be updated.

See also

  • add_option()

Parameters

$network_id

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

$option

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

$value

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

Return

(bool) True if the option was added, false otherwise.

0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments