update_blog_public()
Updates this blog's 'public' setting in the global blogs table.
Public blogs have a setting of 1, private blogs are 0.
No Hooks.
Return
null
. Nothing (null).
Usage
update_blog_public( $old_value, $value );
- $old_value(int) (required)
- The old public value.
- $value(int) (required)
- The new public value.
Changelog
Since 3.0.0 | Introduced. |
update_blog_public() update blog public code WP 6.6.2
function update_blog_public( $old_value, $value ) { update_blog_status( get_current_blog_id(), 'public', (int) $value ); }