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