Uses
Uses | Description |
---|---|
wp-includes/ms-site.php: wp_is_site_initialized() | Checks whether a site is initialized. |
wp-includes/ms-blogs.php: update_blog_option() | Update an option for a particular blog. |
Updates the blog_public
option for a given site ID.
(int) (Required) Site ID.
(string) (Required) The value of the site status.
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 ); }
Version | Description |
---|---|
5.1.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_update_blog_public_option_on_site_update