On this page
apply_filters( 'pre_wp_is_site_initialized', bool|null $pre, int $site_id )
Filters the check for whether a site is initialized before the database is accessed.
Description
Returning a non-null value will effectively short-circuit the function, returning that value instead.
Parameters
$prebool|null-
The value to return instead. Default null to continue with the check.
$site_idint-
The site ID that is being checked.
Source
File: wp-includes/ms-site.php. View all references
$pre = apply_filters( 'pre_wp_is_site_initialized', null, $site_id );
Related
Used By
| Used By | Description |
|---|---|
| wp_is_site_initialized() wp-includes/ms-site.php | Checks whether a site is initialized. |
Changelog
| Version | Description |
|---|---|
| 5.1.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/pre_wp_is_site_initialized