# wp_installing()

URL: https://chugunov.pro/api-wordpress/functions/wp_installing/
Проверено на WordPress 6.9, обновлено 06.08.2026.
Источник: независимый русскоязычный справочник chugunov.pro. Не является официальной документацией WordPress.

Тип: функция.
Появился в версии: 4.4.0.

## Сигнатура

```php
wp_installing( bool $is_installing = null ): bool
```

## Описание

Если во время начальной загрузки определена константа WP_INSTALLING, значение wp_installing() по умолчанию будет true.

## Параметры

- `$is_installing` `bool` — необязательный, по умолчанию `null`. True — включить режим установки WP, false — выключить его.
  
  Опустите этот параметр, если хотите лишь получить текущий статус.

## Возвращаемое значение

`bool` — $is_installing $is_installing

## Исходный код

Файл: `wp-includes/load.php:1633`

```php
function wp_installing( $is_installing = null ) {
	static $installing = null;

	// Support for the `WP_INSTALLING` constant, defined before WP is loaded.
	if ( is_null( $installing ) ) {
		$installing = defined( 'WP_INSTALLING' ) && WP_INSTALLING;
	}

	if ( ! is_null( $is_installing ) ) {
		$old_installing = $installing;
		$installing     = $is_installing;

		return (bool) $old_installing;
	}

	return (bool) $installing;
}
```

## История изменений

- 4.4.0 — Introduced.

## Связанные

Используется в: [`wp_prime_network_option_caches`](https://chugunov.pro/api-wordpress/functions/wp_prime_network_option_caches/), [`_wp_theme_json_webfonts_handler`](https://chugunov.pro/api-wordpress/functions/_wp_theme_json_webfonts_handler/), [`wp_schedule_update_user_counts`](https://chugunov.pro/api-wordpress/functions/wp_schedule_update_user_counts/), [`wp_update_https_migration_required`](https://chugunov.pro/api-wordpress/functions/wp_update_https_migration_required/), [`filter_default_metadata`](https://chugunov.pro/api-wordpress/functions/filter_default_metadata/), [`wp_is_maintenance_mode`](https://chugunov.pro/api-wordpress/functions/wp_is_maintenance_mode/), `WP_Site_Health::maybe_create_scheduled_event`, `WP_Recovery_Mode::initialize`, [`wp_get_active_and_valid_themes`](https://chugunov.pro/api-wordpress/functions/wp_get_active_and_valid_themes/), [`wp_initialize_site`](https://chugunov.pro/api-wordpress/functions/wp_initialize_site/), [`determine_locale`](https://chugunov.pro/api-wordpress/functions/determine_locale/), [`wp_default_packages_inline_scripts`](https://chugunov.pro/api-wordpress/functions/wp_default_packages_inline_scripts/), [`wp_schedule_delete_old_privacy_export_files`](https://chugunov.pro/api-wordpress/functions/wp_schedule_delete_old_privacy_export_files/), [`ms_load_current_site_and_network`](https://chugunov.pro/api-wordpress/functions/ms_load_current_site_and_network/), [`wp_get_available_translations`](https://chugunov.pro/api-wordpress/functions/wp_get_available_translations/), `WP_Automatic_Updater::is_disabled`, `WP_Upgrader::init`, [`update_home_siteurl`](https://chugunov.pro/api-wordpress/functions/update_home_siteurl/), [`request_filesystem_credentials`](https://chugunov.pro/api-wordpress/functions/request_filesystem_credentials/), [`validate_current_theme`](https://chugunov.pro/api-wordpress/functions/validate_current_theme/), [`load_default_textdomain`](https://chugunov.pro/api-wordpress/functions/load_default_textdomain/), [`get_locale`](https://chugunov.pro/api-wordpress/functions/get_locale/), [`wp_not_installed`](https://chugunov.pro/api-wordpress/functions/wp_not_installed/), [`wp_get_active_and_valid_plugins`](https://chugunov.pro/api-wordpress/functions/wp_get_active_and_valid_plugins/), [`dead_db`](https://chugunov.pro/api-wordpress/functions/dead_db/), [`is_blog_installed`](https://chugunov.pro/api-wordpress/functions/is_blog_installed/), [`wp_schedule_update_checks`](https://chugunov.pro/api-wordpress/functions/wp_schedule_update_checks/), [`wp_version_check`](https://chugunov.pro/api-wordpress/functions/wp_version_check/), [`wp_update_plugins`](https://chugunov.pro/api-wordpress/functions/wp_update_plugins/), [`wp_update_themes`](https://chugunov.pro/api-wordpress/functions/wp_update_themes/), [`set_site_transient`](https://chugunov.pro/api-wordpress/functions/set_site_transient/), [`delete_site_transient`](https://chugunov.pro/api-wordpress/functions/delete_site_transient/), [`get_site_transient`](https://chugunov.pro/api-wordpress/functions/get_site_transient/), [`get_transient`](https://chugunov.pro/api-wordpress/functions/get_transient/), [`set_transient`](https://chugunov.pro/api-wordpress/functions/set_transient/), [`wp_load_alloptions`](https://chugunov.pro/api-wordpress/functions/wp_load_alloptions/), [`wp_load_core_site_options`](https://chugunov.pro/api-wordpress/functions/wp_load_core_site_options/), [`is_multisite`](https://chugunov.pro/api-wordpress/functions/is_multisite/), [`update_option`](https://chugunov.pro/api-wordpress/functions/update_option/), [`add_option`](https://chugunov.pro/api-wordpress/functions/add_option/).

Оригинал в официальной документации: https://developer.wordpress.org/reference/functions/wp_installing/
