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_valueintrequired- The old public value.
$valueintrequired- The new public value.
Source
function update_blog_public( $old_value, $value ) {
update_blog_status( get_current_blog_id(), 'public', (int) $value );
}
Changelog
| Version | Description |
|---|---|
| MU (3.0.0) | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.