On this page
update_blog_public( int $old_value, int $value )
Updates this blog’s ‘public’ setting in the global blogs table.
Description
Public blogs have a setting of 1, private blogs are 0.
Parameters
$old_valueint Required$valueint Required-
The new public value
Source
File: wp-includes/ms-functions.php. View all references
function update_blog_public( $old_value, $value ) {
update_blog_status( get_current_blog_id(), 'public', (int) $value );
}
Related
Uses
| Uses | Description |
|---|---|
| update_blog_status() wp-includes/ms-blogs.php | Update a blog details field. |
| get_current_blog_id() wp-includes/load.php | Retrieve the current site ID. |
Changelog
| Version | Description |
|---|---|
| MU (3.0.0) | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/update_blog_public