Filter hook 'pre_wp_is_site_initialized'

in WP Core File wp-includes/ms-site.php at line 926

Description

Filters the check for whether a site is initialized before the database is accessed. Returning a non-null value will effectively short-circuit the function, returning that value instead.

Occurrences

Filename Line Number
wp-includes/ms-site.php 926

Parameters

Type Name Description
bool|null $pre The value to return instead. Default null to continue with the check.
int $site_id The site ID that is being checked.

PHP Doc

/**
	 * Filters the check for whether a site is initialized before the database is accessed.
	 *
	 * Returning a non-null value will effectively short-circuit the function, returning
	 * that value instead.
	 *
	 * @since 5.1.0
	 *
	 * @param bool|null $pre     The value to return instead. Default null
	 *                           to continue with the check.
	 * @param int       $site_id The site ID that is being checked.
	 */