A WordPress-centric search engine for devs and theme authors



wp_update_blog_public_option_on_site_update ›

Since5.0.0
Deprecatedn/a
wp_update_blog_public_option_on_site_update ( $site_id, $public )
Parameters: (2)
  • (int) $site_id Site ID.
    Required: Yes
  • (string) $public The value of the site status.
    Required: Yes
Defined at:
Codex:

Updates the `blog_public` option for a given site ID.



Source

function wp_update_blog_public_option_on_site_update( $site_id, $public ) {
	update_blog_option( $site_id, 'blog_public', $public );
}