钩子文档

ms_site_check

💡 云策文档标注

概述

ms_site_check 是一个 WordPress 过滤器,用于检查当前博客的状态。它允许开发者通过应用过滤器来跳过或修改博客状态检查。

关键要点

  • ms_site_check 是一个过滤器,参数为 $check,默认值为 null,用于控制是否跳过博客状态检查。
  • 该过滤器在 ms_site_check() 函数中使用,位于 wp-includes/ms-load.php 文件中。
  • 自 WordPress 3.0.0 版本引入,用于多站点环境中的博客状态管理。

代码示例

$check = apply_filters( 'ms_site_check', null );

📄 原文内容

Filters checking the status of the current blog.

Parameters

$checkbool|null
Whether to skip the blog status check. Default null.

Source

$check = apply_filters( 'ms_site_check', null );

Changelog

Version Description
3.0.0 Introduced.