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



update_archived ›

Since3.0.0
已弃用n/a
update_archived ( $id, $archived )
参数: (2)
  • (int) $id Blog ID.
    Required: Yes
  • (string) $archived The new status.
    Required: Yes
返回:
  • (string) $archived
定义在:
文档:
Change Log:
  • MU

Update the 'archived' status of a particular blog.



源码

function update_archived( $id, $archived ) {
	update_blog_status( $id, 'archived', $archived );
	return $archived;
}