Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/update blog public

This page redirects to an external site: https://developer.wordpress.org/reference/functions/update_blog_public/

Description

Update this blog's 'public' setting in the global blogs table.

Public blogs have a setting of 1, private blogs are 0.

Usage

<code style="color: #000000"><span style="color: #0000BB"><?php update_blog_public</span><span style="color: #007700">( </span><span style="color: #0000BB">$unused</span><span style="color: #007700">, </span><span style="color: #0000BB">$value </span><span style="color: #007700">); </span><span style="color: #0000BB">?></span></code>

Parameters

$unused
(int) (required)
Default: None
$value
(int) (required) The new public value
Default: None

Return Values

(bool) 

Source File

update_blog_public() is located in wp-includes/ms-functions.php