ms_site_check()判断站点当前状态(多站点)

目录

描述

Checks status of current blog.

Checks if the blog is deleted, inactive, archived, or spammed.

Dies with a default message if the blog does not pass the check, or if an appropriate drop-in file exists, returns path to that file.

ms_site_check() 描述

用法

<?php ms_site_check(); ?>

ms_site_check() 用法

参数

This function does not accept any parameters

ms_site_check() 参数

示例

ms_site_check() 示例

注意

To change the default message when a blog does not pass the check, use the wp-content/blog-deleted.php, blog-inactive.php and blog-suspended.php drop-ins. Then include the returned path if the function does not return True.

ms_site_check() 注意

历史

添加于 版本: ??

ms_site_check() 历史

源文件

ms_site_check() 函数的代码位于 wp-includes/ms-load.php

ms_site_check() 源文件

相关