pre_wp_is_site_initialized WordPress Filter Hook

The pre_wp_is_site_initialized hook is called before the WordPress is_site_initialized function is run. This function is used to check whether a site is initialized. It is used to determine whether a site is in the process of being initialized.

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.


Top ↑

Parameters

$pre

(bool|null)The value to return instead. Default null to continue with the check.

$site_id

(int)The site ID that is being checked.


Top ↑

Source

File: wp-includes/ms-site.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
5.1.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.