WPDev.one
Core Function
View Source on Trac ↗

add_blog_option()

add_blog_option( mixed $id, mixed $option, mixed $value )

Adds a new option for a given blog ID.

Parameters 3 required

Name / Type Description
$id
int

A blog ID. Can be null to refer to the current blog.

Required
$option
string

Name of option to add. Expected to not be SQL-escaped.

Required
$value
mixed

Option value, can be anything. Expected to not be SQL-escaped.

Required

Return Value

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

Function Information

Since Version
MU (3.0.0)
Source File
wp-includes/ms-blogs.php
Advertisement