wp_installing

Advertisement

Summery Summery

Check or set whether WordPress is in “installation” mode.

Syntax Syntax

wp_installing( bool $is_installing = null )

Description Description

If the WP_INSTALLING constant is defined during the bootstrap, wp_installing() will default to true.

Parameters Parameters

$is_installing

(bool) (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 value: null

Return 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 Source

File: wp-includes/load.php

			$locations[] = ABSPATH . 'wp-content/languages';
		}

		if ( @is_dir( ABSPATH . WPINC . '/languages' ) ) {
			$locations[] = ABSPATH . WPINC . '/languages';
		}

		if ( ! $locations ) {
			break;
		}

		$locations = array_unique( $locations );

		foreach ( $locales as $locale ) {
			foreach ( $locations as $location ) {
				if ( file_exists( $location . '/' . $locale . '.mo' ) ) {

Advertisement

Changelog Changelog

Changelog
Version Description
4.4.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.