wp_update_blog_public_option_on_site_update( int $site_id, string $public )
Updates the blog_public
option for a given site ID.
Description Description
Parameters Parameters
- $site_id
-
(int) (Required) Site ID.
- $public
-
(string) (Required) The value of the site status.
Source Source
File: wp-includes/ms-site.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 ); }
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
5.1.0 | Introduced. |