WordPress at a glance
function is not described

wp_update_blog_public_option_on_site_update() WP 5.1.0

Updates the blog_public option for a given site ID.

No Hooks.

Return

Null. Nothing.

Usage

wp_update_blog_public_option_on_site_update( $site_id, $public );
$site_id(int) (required)
Site ID.
$public(string) (required)
The value of the site status.

Changelog

Since 5.1.0 Introduced.

Code of wp_update_blog_public_option_on_site_update() WP 5.5.1

<?php
function wp_update_blog_public_option_on_site_update( $site_id, $public ) {

	// Bail if the site's database tables do not exist (yet).
	if ( ! wp_is_site_initialized( $site_id ) ) {
		return;
	}

	update_blog_option( $site_id, 'blog_public', $public );
}