ms_site_check
Filters checking the status of the current blog.
Использование
add_filter( 'ms_site_check', 'wp_kama_ms_site_check_filter' ); /** * Function for `ms_site_check` filter-hook. * * @param bool|null $check Whether to skip the blog status check. * * @return bool|null */ function wp_kama_ms_site_check_filter( $check ){ // filter... return $check; }
- $check(true|false|null)
- Whether to skip the blog status check.
По умолчанию: null
Список изменений
С версии 3.0.0 | Введена. |
Где вызывается хук
ms_site_check
wp-includes/ms-load.php 83
$check = apply_filters( 'ms_site_check', null );