update_blog_public

Definition:
function update_blog_public( $old_value, $value ) {}

Update this blog’s ‘public’ setting in the global blogs table.
Public blogs have a setting of 1, private blogs are 0.

Parameters

  • int $old_value
  • int $value: The new public value

Defined actions

  • update_blog_public
    do_action('update_blog_public');

Source code

function update_blog_public( $old_value, $value ) {

	global $wpdb;

	do_action('update_blog_public');

	update_blog_status( $wpdb->blogid, 'public', (int) $value );

}

3159

No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: