Updates this blog’s ‘public’ setting in the global blogs table.
Public blogs have a setting of 1, private blogs are 0.
$old_valueintrequired
$valueintrequired
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–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/update_blog_public