ms_site_check
Filter HookDescription
Filters checking the status of the current blog.Hook Information
File Location |
wp-includes/ms-load.php
View on GitHub
|
Hook Type | Filter |
Line Number | 83 |
Hook Parameters
Type | Name | Description |
---|---|---|
bool|null
|
$check
|
Whether to skip the blog status check. Default null. |
Usage Examples
Basic Usage
<?php
// Hook into ms_site_check
add_filter('ms_site_check', 'my_custom_filter', 10, 1);
function my_custom_filter($check) {
// Your custom filtering logic here
return $check;
}
Source Code Context
wp-includes/ms-load.php:83
- How this hook is used in WordPress core
<?php
78 *
79 * @since 3.0.0
80 *
81 * @param bool|null $check Whether to skip the blog status check. Default null.
82 */
83 $check = apply_filters( 'ms_site_check', null );
84 if ( null !== $check ) {
85 return true;
86 }
87
88 // Allow super admins to see blocked sites.
PHP Documentation
<?php
/**
* Filters checking the status of the current blog.
*
* @since 3.0.0
*
* @param bool|null $check Whether to skip the blog status check. Default null.
*/
Quick Info
- Hook Type: Filter
- Parameters: 1
- File: wp-includes/ms-load.php
Related Hooks
Related hooks will be displayed here in future updates.