WordPress.org

Ready to get started?Download WordPress

Codex

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

Function Reference/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

<?php update_blog_public$old_value$value ); ?>

Parameters

$old_value
(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