PHP Constants used throughout WordPress Core.
-
ABSPATHSet in:
wp-load.php🔍,wp-config-sample.php🔍Default value:
dirname( __FILE__ )Description: Stores the absolute path to the WordPress root folder.
-
ADMIN_COOKIE_PATHSet in:
default-constants.php🔍Default Value:
SITECOOKIEPATH . 'wp-admin'Description: Admin backend path to store the cookie under.
-
AUTH_COOKIESet in:
default-constants.php🔍Default Value:
'wordpress_' . COOKIEHASHDescription: Name of the cookie storing whether the user is authenticated over HTTP.
-
AUTH_KEYSet in:
wp-config-sample.php🔍Description: Authentication key used to generate an authentication cookie on HTTP connections.
-
AUTH_SALTSet in:
wp-config-sample.php🔍Description: Salt used on the authentication key for generating an authentication cookie on HTTP connections.
-
AUTOSAVE_INTERVALSet in:
default-constants.php🔍Default Value:
60Description: Interval between automatic saves in seconds.
-
COOKIE_DOMAINSet in:
default-constants.php🔍Default Value:
falseDescription: Domain store the cookie under.
-
COOKIE_HASHSet in:
default-constants.php🔍Default Value:
md5( $siteurl )Description: Used to guarantee unique cookie hashes.
-
COOKIEPATHSet in:
default-constants.php🔍Default Value:
preg_replace('|https?://[^/]+|i', '', get_option('home') . '/' )Description: Home path to store the cookie under.
-
DB_CHARSETSet in:
wp-config-sample.php🔍Default value:
'utf8'Description: Database Charset to use in creating database tables.
-
DB_COLLATESet in:
wp-config-sample.php🔍Default value:
''Description: The Database Collate type.
-
DB_HOSTSet in:
wp-config-sample.php🔍Default value:
'localhost'Description: MySQL hostname.
-
DB_NAMESet in:
wp-config-sample.php🔍Description: The name of the database for WordPress.
-
DB_PASSWORDSet in:
wp-config-sample.php🔍Description: MySQL database password.
-
DB_USERSet in:
wp-config-sample.php🔍Description: MySQL database username.
-
DAY_IN_SECONDSSet in:
default-constants.php🔍Value:
24 * HOUR_IN_SECONDSDescription: Constant for expressing human-readable intervals in their respective number of seconds.
-
EMPTY_TRASH_DAYSSet in:
default-constants.php🔍Default Value:
30Description: Interval between automatic removal of trashed elements in days.
-
FORCE_SSL_ADMINSet in:
default-constants.php🔍Default Value:
true|falsebased onget_option('siteurl')schemeDescription: Whether to force the admin backend to always require a secure connection.
-
FORCE_SSL_LOGINDescription: Whether to force logged-in users to always require a secure connection.
-
GB_IN_BYTESSet in:
default-constants.php🔍Value:
1024 * MB_IN_BYTESDescription: Constant for expressing human-readable data-sizes in their respective number of bytes.
-
HOUR_IN_SECONDSSet in:
default-constants.php🔍Value:
60 * MINUTE_IN_SECONDSDescription: Constant for expressing human-readable intervals in their respective number of seconds.
-
KB_IN_BYTESSet in:
default-constants.php🔍Value:
1024Description: Constant for expressing human-readable data-sizes in their respective number of bytes.
-
LOGGED_IN_COOKIESet in:
default-constants.php🔍Default Value:
'wordpress_logged_in_' . COOKIEHASHDescription: Name of the cookie storing whether the user is logged in.
-
LOGGED_IN_KEYSet in:
wp-config-sample.php🔍Description: Key used to generate the logged-in cookie.
-
LOGGED_IN_SALTSet in:
wp-config-sample.php🔍Description: Salt used on the key for generating the logged-in cookie.
-
MB_IN_BYTESSet in:
default-constants.php🔍Value:
1024 * KB_IN_BYTESDescription: Constant for expressing human-readable data-sizes in their respective number of bytes.
-
MEDIA_TRASHSet in:
default-constants.php🔍Default Value:
falseDescription: Use trashcan when deleting media files.
-
MINUTE_IN_SECONDSSet in:
default-constants.php🔍Value:
60Description: Constant for expressing human-readable intervals in their respective number of seconds.
-
MONTH_IN_SECONDSSet in:
default-constants.php🔍Value:
30 * DAY_IN_SECONDSDescription: Constant for expressing human-readable intervals in their respective number of seconds.
-
MUPLUGINDIR(deprecated)Set in:
default-constants.php🔍Default Value:
wp-content/mu-pluginsDescription: Path to the mu-plugins folder.
-
NONCE_KEYSet in:
wp-config-sample.php🔍Description: Key used to generate a nonce.
-
NONCE_SALTSet in:
wp-config-sample.php🔍Description: Salt used on the key for generating a nonce.
-
PASS_COOKIE(deprecated)Set in:
default-constants.php🔍Default Value:
'wordpresspass_' . COOKIEHASHDescription: Name of the cookie storing the user's double-hashed password.
-
PLUGINDIR(deprecated)Set in:
default-constants.php🔍Default Value:
wp-content/pluginsDescription: Path to the plugins folder.
-
PLUGINS_COOKIE_PATHSet in:
default-constants.php🔍Default Value:
preg_replace('|https?://[^/]+|i', '', WP_PLUGIN_URL )Description: Plugins folder path to store the cookie under.
-
SCRIPT_DEBUGSet in:
default-constants.php🔍Default Value:
falseDescription: Load of non-minified, non-concatenated scripts and stylesheets.
-
SECURE_AUTH_COOKIESet in:
default-constants.php🔍Default Value:
'wordpress_sec_' . COOKIEHASHDescription: Name of the cookie storing whether the user is authenticated over HTTPS.
-
SECURE_AUTH_KEYSet in:
wp-config-sample.php🔍Description: Authentication key used to generate an authentication cookie on HTTPS connections.
-
SECURE_AUTH_SALTSet in:
wp-config-sample.php🔍Description: Salt used on the authentication key for generating an authentication cookie on HTTPS connections.
-
SHORTINITSet in:
default-constants.php🔍Default Value:
falseDescription: Short-circuit the WordPress loading process to run a minimal system.
-
SITECOOKIEPATHSet in:
default-constants.php🔍Default Value:
preg_replace('|https?://[^/]+|i', '', get_option('siteurl') . '/' )Description: Site URL path to store the cookie under.
-
STYLESHEETPATHSet in:
default-constants.php🔍Default Value:
get_stylesheet_directory()Description: Filesystem path to the current active template stylesheet directory.
-
TB_IN_BYTESSet in:
default-constants.php🔍Value:
1024 * GB_IN_BYTESDescription: Constant for expressing human-readable data-sizes in their respective number of bytes.
-
TEMPLATEPATHSet in:
default-constants.php🔍Default Value:
get_template_directory()Description: Filesystem path to the current active template directory.
-
TEST_COOKIESet in:
default-constants.php🔍Default Value:
'wordpress_test_cookie_' . COOKIEHASHDescription: Name of the cookie used to test whether the browser supports cookies.
-
USER_COOKIE(deprecated)Set in:
default-constants.php🔍Default Value:
'wordpressuser_' . COOKIEHASHDescription: Name of the cookie storing the user name.
-
WEEK_IN_SECONDSSet in:
default-constants.php🔍Value:
7 * DAY_IN_SECONDSDescription: Constant for expressing human-readable intervals in their respective number of seconds.
-
WP_CACHESet in:
default-constants.php🔍Default Value:
falseDescription: Cache generated WordPress output.
-
WP_CONTENT_DIRSet in:
default-constants.php🔍Default Value:
ABSPATH . 'wp-content'Description: Path to the content folder.
-
WP_CONTENT_URLSet in:
default-constants.php🔍Default Value:
get_option('siteurl') . '/wp-content'Description: URL location of the content folder.
-
WP_CRON_LOCK_TIMEOUTSet in:
default-constants.php🔍Default Value:
60Description: Timeout for the lock file for cron scripts in seconds.
-
WP_DEBUGSet in:
wp-config-sample.php🔍,default-constants.php🔍Default value:
falseDescription: WordPress debugging mode.
-
WP_DEBUG_DISPLAYSet in:
default-constants.php🔍Default value:
trueDescription: Display PHP errors.
-
WP_DEBUG_LOGSet in:
default-constants.php🔍Default value:
falseDescription: Log PHP errors to
WP_CONTENT_DIR/debug.log. -
WP_DEFAULT_THEMESet in:
default-constants.php🔍Default Value:
'twentyseventeen'(as of WordPress 4.8)Description: Default theme to pick if none was set.
-
WP_FEATURE_BETTER_PASSWORDSSet in:
default-constants.php🔍Default Value:
trueDescription: Constant for "Better Passwords"-feature added to WordPress that should short-circuit its plugin implementation.
-
WP_MAX_MEMORY_LIMITSet in:
default-constants.php🔍Default Value:
256MDescription: PHP process maximum memory limit.
-
WP_MEMORY_LIMITSet in:
default-constants.php🔍Default Value:
40M(64Mon multisite)Description: PHP process default memory limit.
-
WP_PLUGIN_DIRSet in:
default-constants.php🔍Default Value:
WP_CONTENT_DIR . '/plugins'Description: Path to the plugins folder.
-
WP_PLUGIN_URLSet in:
default-constants.php🔍Default Value:
WP_CONTENT_URL . '/plugins'Description: URL location of the plugins folder.
-
WP_POST_REVISIONSSet in:
default-constants.php🔍Default Value:
trueDescription: Whether to store multiple versioned revisions for edited posts.
-
WP_USE_THEMESSet in:
index.php🔍Default value:
trueDescription: Tells WordPress to load the WordPress theme and output it.
-
WPINCSet in:
wp-load.php🔍Default value:
'wp-includes'Description: Directory name of the folder that contains the includes.
-
WPMU_PLUGIN_DIRSet in:
default-constants.php🔍Default Value:
WP_CONTENT_DIR . '/mu-plugins'Description: Path to the mu-plugins folder.
-
WPMU_PLUGIN_URLSet in:
default-constants.php🔍Default Value:
WP_CONTENT_URL . '/mu-plugins'Description: URL location of the mu-plugins folder.
-
YEAR_IN_SECONDSSet in:
default-constants.php🔍Value:
365 * DAY_IN_SECONDSDescription: Constant for expressing human-readable intervals in their respective number of seconds.