update_blog_public( int $old_value, int $value )

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


Description

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


Top ↑

Parameters

$old_value int Required
The old public value.
$value int Required
The new public value.

Top ↑

Source

File: wp-includes/ms-functions.php. View all references

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


Top ↑

Changelog

Changelog
Version Description
MU (3.0.0) Introduced.

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.