On this page
wp_installing( bool $is_installing = null ): bool
Check or set whether WordPress is in “installation” mode.
Description
If the WP_INSTALLING constant is defined during the bootstrap, wp_installing() will default to true.
Parameters
$is_installingbool Optional-
True to set WP into Installing mode, false to turn Installing mode off.
Omit this parameter if you only want to fetch the current status.Default:
null
Return
bool True if WP is installing, otherwise false. When a $is_installing is passed, the function will report whether WP was in installing mode prior to the change to $is_installing.
Source
File: wp-includes/load.php. View all references
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;
}
Related
Used By
| Used By | Description |
|---|---|
| _wp_theme_json_webfonts_handler() wp-includes/script-loader.php | Runs the theme.json webfonts handler. |
| wp_schedule_update_user_counts() wp-includes/user.php | Schedules a recurring recalculation of the total count of users. |
| wp_schedule_https_detection() wp-includes/https-detection.php | Schedules the Cron hook for detecting HTTPS support. |
| wp_update_https_migration_required() wp-includes/https-migration.php | Updates the ‘https_migration_required’ option if needed when the given URL has been updated from HTTP to HTTPS. |
| filter_default_metadata() wp-includes/meta.php | Filters into default_{$object_type}_metadata and adds in default value. |
| wp_is_maintenance_mode() wp-includes/load.php | Check if maintenance mode is enabled. |
| WP_Site_Health::maybe_create_scheduled_event() wp-admin/includes/class-wp-site-health.php | Creates a weekly cron event, if one does not already exist. |
| WP_Recovery_Mode::initialize() wp-includes/class-wp-recovery-mode.php | Initialize recovery mode for the current request. |
| wp_get_active_and_valid_themes() wp-includes/load.php | Retrieves an array of active and valid themes. |
| wp_initialize_site() wp-includes/ms-site.php | Runs the initialization routine for a given site. |
| wp_default_packages_inline_scripts() wp-includes/script-loader.php | Adds inline scripts required for the WordPress JavaScript packages. |
| wp_schedule_delete_old_privacy_export_files() wp-includes/functions.php | Schedules a |
| ms_load_current_site_and_network() wp-includes/ms-load.php | Identifies the network and site of a requested domain and path and populates the corresponding network and site global objects as part of the multisite bootstrap process. |
| wp_get_available_translations() wp-admin/includes/translation-install.php | Get available translations from the WordPress.org API. |
| WP_Automatic_Updater::is_disabled() wp-admin/includes/class-wp-automatic-updater.php | Determines whether the entire automatic updater is disabled. |
| update_home_siteurl() wp-admin/includes/misc.php | Flushes rewrite rules if siteurl, home or page_on_front changed. |
| request_filesystem_credentials() wp-admin/includes/file.php | Displays a form to the user to request for their FTP/SSH details in order to connect to the filesystem. |
| validate_current_theme() wp-includes/theme.php | Checks that the active theme has the required files. |
| load_default_textdomain() wp-includes/l10n.php | Loads default translated strings based on locale. |
| get_locale() wp-includes/l10n.php | Retrieves the current locale. |
| wp_not_installed() wp-includes/load.php | Redirect to the installer if WordPress is not installed. |
| wp_get_active_and_valid_plugins() wp-includes/load.php | Retrieve an array of active and valid plugin files. |
| dead_db() wp-includes/functions.php | Loads custom DB error or display WordPress DB error. |
| is_blog_installed() wp-includes/functions.php | Determines whether WordPress is already installed. |
| wp_schedule_update_checks() wp-includes/update.php | Schedules core, theme, and plugin update checks. |
| wp_version_check() wp-includes/update.php | Checks WordPress version against the newest version. |
| wp_update_plugins() wp-includes/update.php | Checks for available updates to plugins based on the latest versions hosted on WordPress.org. |
| wp_update_themes() wp-includes/update.php | Checks for available updates to themes based on the latest versions hosted on WordPress.org. |
| set_site_transient() wp-includes/option.php | Sets/updates the value of a site transient. |
| delete_site_transient() wp-includes/option.php | Deletes a site transient. |
| get_site_transient() wp-includes/option.php | Retrieves the value of a site transient. |
| get_transient() wp-includes/option.php | Retrieves the value of a transient. |
| set_transient() wp-includes/option.php | Sets/updates the value of a transient. |
| wp_load_alloptions() wp-includes/option.php | Loads and caches all autoloaded options, if available or all options. |
| wp_load_core_site_options() wp-includes/option.php | Loads and caches certain often requested site options if is_multisite() and a persistent cache is not being used. |
| update_option() wp-includes/option.php | Updates the value of an option that was already added. |
| add_option() wp-includes/option.php | Adds a new option. |
| delete_option() wp-includes/option.php | Removes option by name. Prevents removal of protected WordPress options. |
| delete_transient() wp-includes/option.php | Deletes a transient. |
| get_option() wp-includes/option.php | Retrieves an option value based on an option name. |
| wp_schedule_update_network_counts() wp-includes/ms-functions.php | Schedules update of the network-wide counts for the current network. |
| wpmu_create_blog() wp-includes/ms-functions.php | Creates a site. |
| wp_style_loader_src() wp-includes/script-loader.php | Administration Screen CSS for changing the styles. |
| script_concat_settings() wp-includes/script-loader.php | Determines the concatenation and compression settings for scripts and styles. |
| wp_default_scripts() wp-includes/script-loader.php | Registers all WordPress scripts. |
Changelog
| Version | Description |
|---|---|
| 4.4.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_installing