WordPress开发者和主题制作者的搜索引擎



wp_update_blog_public_option_on_site_update ›

Since5.0.0
已弃用n/a
wp_update_blog_public_option_on_site_update ( $site_id, $public )
参数: (2)
  • (int) $site_id Site ID.
    Required: Yes
  • (string) $public The value of the site status.
    Required: Yes
定义在:
文档:

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



源码

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 );
}