Title: wp_not_installed
Published: April 25, 2014
Last modified: May 20, 2026

---

# wp_not_installed()

## In this article

 * [Description](https://developer.wordpress.org/reference/functions/wp_not_installed/?output_format=md#description)
 * [Source](https://developer.wordpress.org/reference/functions/wp_not_installed/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/functions/wp_not_installed/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/functions/wp_not_installed/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/functions/wp_not_installed/?output_format=md#wp--skip-link--target)

This function’s access is marked private. This means it is not intended for use 
by plugin or theme developers, only by core. It is listed here for completeness.

Redirects to the installer if WordPress is not installed.

## 󠀁[Description](https://developer.wordpress.org/reference/functions/wp_not_installed/?output_format=md#description)󠁿

Dies with an error message when Multisite is enabled.

## 󠀁[Source](https://developer.wordpress.org/reference/functions/wp_not_installed/?output_format=md#source)󠁿

    ```php
    function wp_not_installed() {
    	if ( is_blog_installed() || wp_installing() ) {
    		return;
    	}

    	nocache_headers();

    	if ( is_multisite() ) {
    		wp_die( __( 'The site you have requested is not installed properly. Please contact the system administrator.' ) );
    	}

    	require ABSPATH . WPINC . '/kses.php';
    	require ABSPATH . WPINC . '/pluggable.php';

    	$link = wp_guess_url() . '/wp-admin/install.php';

    	wp_redirect( $link );
    	die();
    }
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/load.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.0/src/wp-includes/load.php#L942)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/load.php#L942-L960)

## 󠀁[Related](https://developer.wordpress.org/reference/functions/wp_not_installed/?output_format=md#related)󠁿

| Uses | Description | 
| [wp_installing()](https://developer.wordpress.org/reference/functions/wp_installing/)`wp-includes/load.php` |

Checks or sets whether WordPress is in “installation” mode.

  | 
| [wp_redirect()](https://developer.wordpress.org/reference/functions/wp_redirect/)`wp-includes/pluggable.php` |

Redirects to another page.

  | 
| [wp_guess_url()](https://developer.wordpress.org/reference/functions/wp_guess_url/)`wp-includes/functions.php` |

Guesses the URL for the site.

  | 
| [is_blog_installed()](https://developer.wordpress.org/reference/functions/is_blog_installed/)`wp-includes/functions.php` |

Determines whether WordPress is already installed.

  | 
| [nocache_headers()](https://developer.wordpress.org/reference/functions/nocache_headers/)`wp-includes/functions.php` |

Sets the HTTP headers to prevent caching for the different browsers.

  | 
| [__()](https://developer.wordpress.org/reference/functions/__/)`wp-includes/l10n.php` |

Retrieves the translation of $text.

  | 
| [is_multisite()](https://developer.wordpress.org/reference/functions/is_multisite/)`wp-includes/load.php` |

Determines whether Multisite is enabled.

  | 
| [wp_die()](https://developer.wordpress.org/reference/functions/wp_die/)`wp-includes/functions.php` |

Kills WordPress execution and displays HTML page with an error message.

  |

[Show 3 more](https://developer.wordpress.org/reference/functions/wp_not_installed/?output_format=md#)
[Show less](https://developer.wordpress.org/reference/functions/wp_not_installed/?output_format=md#)

## 󠀁[Changelog](https://developer.wordpress.org/reference/functions/wp_not_installed/?output_format=md#changelog)󠁿

| Version | Description | 
| [3.0.0](https://developer.wordpress.org/reference/since/3.0.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Ffunctions%2Fwp_not_installed%2F)
before being able to contribute a note or feedback.