Attention Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/ms site check

This page is marked as incomplete. You can help Codex by expanding it.


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.


<?php ms_site_check(); ?>


This function does not accept any parameters

Return Value

Returns true on success, or path to drop-in file to include on failure.

If no appropriate drop-in file exists, function dies with default message.



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.

Change Log

Since: ??

Source File

ms_site_check() is located in wp-includes/ms-load.php



See also index of Function Reference and index of Template Tags.