Constants in WordPress
Constants defaultly defined in WordPress 2.9.x. (There is 67 of them.) I can't
remember the names. (So I'm sharing the cheatsheet.)
Name | Value (default or example) |
---|---|
ABSPATH |
string(51)
"/Users/peterkahoun/Documents/Web/wordpress/2.9.2cs/" |
ADMIN_COOKIE_PATH |
string(31) "/Web/wordpress/2.9.2cs/wp-admin" |
ARRAY_A |
string(7) "ARRAY_A" |
ARRAY_N |
string(7) "ARRAY_N" |
AUTH_COOKIE |
string(42) "wordpress_04adbd0d0ed74c398a98bca5b0dd94c2" |
AUTH_KEY |
string(27) "put your unique phrase here" |
AUTOSAVE_INTERVAL |
int(60) |
COOKIEHASH |
string(32) "04adbd0d0ed74c398a98bca5b0dd94c2" |
COOKIEPATH |
string(23) "/Web/wordpress/2.9.2cs/" |
COOKIE_DOMAIN |
bool(false) |
CUSTOM_TAGS |
bool(false) |
DB_CHARSET |
string(4) "utf8" |
DB_COLLATE |
string(0) "" |
DB_HOST |
string(9) "localhost" |
DB_NAME |
string(4) "test" |
DB_PASSWORD |
string(4) "root" |
DB_USER |
string(4) "root" |
EMPTY_TRASH_DAYS |
int(30) |
EP_ALL |
int(8191) |
EP_ATTACHMENT |
int(2) |
EP_AUTHORS |
int(2048) |
EP_CATEGORIES |
int(512) |
EP_COMMENTS |
int(128) |
EP_DATE |
int(4) |
EP_DAY |
int(32) |
EP_MONTH |
int(16) |
EP_NONE |
int(0) |
EP_PAGES |
int(4096) |
EP_PERMALINK |
int(1) |
EP_ROOT |
int(64) |
EP_SEARCH |
int(256) |
EP_TAGS |
int(1024) |
EP_YEAR |
int(8) |
EZSQL_VERSION |
string(6) "WP1.25" |
FORCE_SSL_ADMIN |
bool(false) |
FORCE_SSL_LOGIN |
bool(false) |
LANGDIR |
string(20) "wp-content/languages" |
LOGGED_IN_COOKIE |
string(52)
"wordpress_logged_in_04adbd0d0ed74c398a98bca5b0dd94c2" |
LOGGED_IN_KEY |
string(27) "put your unique phrase here" |
MEDIA_TRASH |
bool(false) |
MUPLUGINDIR |
string(21) "wp-content/mu-plugins" |
NONCE_KEY |
string(27) "put your unique phrase here" |
OBJECT |
string(6) "OBJECT" |
OBJECT_K |
string(8) "OBJECT_K" |
PASS_COOKIE |
string(46)
"wordpresspass_04adbd0d0ed74c398a98bca5b0dd94c2" |
PLUGINDIR |
string(18) "wp-content/plugins" |
PLUGINS_COOKIE_PATH |
string(41) "/Web/wordpress/2.9.2cs/wp-content/plugins" |
SECURE_AUTH_COOKIE |
string(46)
"wordpress_sec_04adbd0d0ed74c398a98bca5b0dd94c2" |
SECURE_AUTH_KEY |
string(27) "put your unique phrase here" |
SITECOOKIEPATH |
string(23) "/Web/wordpress/2.9.2cs/" |
STYLESHEETPATH |
string(76)
"/Users/peterkahoun/Documents/Web/wordpress/2.9.2cs/wp-content/themes/default" |
TEMPLATEPATH |
string(76)
"/Users/peterkahoun/Documents/Web/wordpress/2.9.2cs/wp-content/themes/default" |
TEST_COOKIE |
string(21) "wordpress_test_cookie" |
USER_COOKIE |
string(46)
"wordpressuser_04adbd0d0ed74c398a98bca5b0dd94c2" |
WPINC |
string(11) "wp-includes" |
WPLANG |
string(5) "cs_CZ" |
WPMU_PLUGIN_DIR |
string(72)
"/Users/peterkahoun/Documents/Web/wordpress/2.9.2cs/wp-content/mu-plugins" |
WPMU_PLUGIN_URL |
string(65)
"http://localhost:8888/Web/wordpress/2.9.2cs/wp-content/mu-plugins" |
WP_CONTENT_DIR |
string(61)
"/Users/peterkahoun/Documents/Web/wordpress/2.9.2cs/wp-content" |
WP_CONTENT_URL |
string(54)
"http://localhost:8888/Web/wordpress/2.9.2cs/wp-content" |
WP_DEBUG |
bool(false) |
WP_LANG_DIR |
string(71)
"/Users/peterkahoun/Documents/Web/wordpress/2.9.2cs/wp-content/languages" |
WP_MEMORY_LIMIT |
string(3) "32M" |
WP_PLUGIN_DIR |
string(69)
"/Users/peterkahoun/Documents/Web/wordpress/2.9.2cs/wp-content/plugins" |
WP_PLUGIN_URL |
string(62)
"http://localhost:8888/Web/wordpress/2.9.2cs/wp-content/plugins" |
WP_POST_REVISIONS |
bool(true) |
WP_USE_THEMES |
bool(true) |
Comments
Comments are closed.
I quit working with WordPress, comments are closed. My plugins will not be updated any more – at least not by me. Feel free to modify my source codes though… Also I am not able to provide support, sorry. –Kahi