A WordPress-centric search engine for devs and theme authors



update_blog_public ›

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

Update 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 );
}