1. 首页
  2. WordPress 函数手册

is_archived()

is_archived( int $id )

检查特定博客是否已存档。
Check if a particular blog is archived.

目录锚点:#参数#返回#源码


参数(Parameters)

参数 类型 必填 说明
$id (int) 必需 博客ID。

返回(Return)

(string)博客是否已存档。


源码(Source)

/**
 * Check if a particular blog is archived.
 *
 * @since MU
 *
 * @param int $id The blog id
 * @return string Whether the blog is archived or not
 */
function is_archived( $id ) {
	return get_blog_status($id, 'archived');
}
更新版本 源码位置 使用 被使用
MU (3.0.0) wp-includes/ms-blogs.php:667 0 1 function

is_archived() 为WP2原创文章,链接:https://www.wp2.cn/functions/is_archived/