WPDev.one
Core Function
View Source on Trac ↗

get_blog_option()

get_blog_option( mixed $id, mixed $option, mixed $default_value = false )

Retrieves option value for a given blog id based on name of option.

Parameters 2 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 retrieve. Expected to not be SQL-escaped.

Required
$default_value
mixed

Optional. Default value to return if the option does not exist.

Return Value

(mixed)
Value set for the option.

Function Information

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