wpseek.com
A WordPress-centric search engine for devs and theme authors



update_blog_public › WordPress Function

Since
Deprecatedn/a
update_blog_public ( $old_value, $value )
Parameters: (2)
  • (int) $old_value The old public value.
    Required: Yes
  • (int) $value The new public value.
    Required: Yes
Defined at:
Codex:
Change Log:
  • MU

Updates this blog's 'public' setting in the global blogs table.

Public blogs have a setting of 1, private blogs are 0.


Source

function update_blog_public( $old_value, $value ) {
	update_blog_status( get_current_blog_id(), 'public', (int) $value );
}