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



update_blog_public ›

Since3.0.0
已弃用n/a
update_blog_public ( $old_value, $value )
参数: (2)
  • (int) $old_value
    Required: Yes
  • (int) $value The new public value
    Required: Yes
定义在:
文档:
Change Log:
  • MU

Update this blog's 'public' setting in the global blogs table.

Public blogs have a setting of 1, private blogs are 0.



源码

function update_blog_public( $old_value, $value ) {
	update_blog_status( get_current_blog_id(), 'public', (int) $value );
}