Codex

User:Rexmac/Global Variables

NOTE: This page is not meant to ever be moved outside my user space. It is for personal reference only and will eventually be deleted. --Rexmac

Defines

Name Default Value Declared in Purpose
WP_USE_THEMES true index.php  ?????
WP_INSTALLING true wp-admin/setup-config.php
wp-admin/install.php
Set to true during installation process. False otherwise.
DB_NAME $dbname wp-admin/setup-config.php Used to hold the name of the WordPress database.
DB_USER $uname wp-admin/setup-config.php Used to hold the username of the WordPress database user.
DB_PASSWORD $passwrd wp-admin/setup-config.php Used to hold the password of the WordPress database user.
DB_HOST $dbhost wp-config.php
wp-config-sample.php
wp-admin/setup-config.php
Used to hold the hostname of the WordPress database.
WPLANG wp-config.php
wp-config-sample.php
Used to set the language to be used by WordPress.
ABSPATH dirname(__FILE__).'/' wp-config.php
wp-config-sample.php
Used to hold the path to the WordPress folder/directory.

Globals

Name Default Value Declared in Purpose
$wp_did_header false wp-blog-header.php Gets set to true after checking for existence of the wp-config.php file.
$configFile file('../wp-config-sample.php') wp-admin/setup-config.php Gets set to the default WordPress sample configuration file.
$step 0 wp-admin/setup-config.php Used to store the number of the current step of the "Setup Configuration File" process.
$table_prefix 'wp_' wp-config.php
wp-config-sample.php
Used to store the prefix to be used in the name of WordPress database tables.