PHP WordPress - Constants

<?php /////////////////////////////////////// // General /////////////////////////////////////// // Defines an interval, in which WordPress should do an autosave. // Value: time in seconds (Default: 60) AUTOSAVE_INTERVAL // Allows you to skip new bundles files like plugins and/or themes on upgrades. // Values: true|false CORE_UPGRADE_SKIP_NEW_BUNDLED // Deactivates the cron function of WordPress. // Value: true DISABLE_WP_CRON // Controls the number of days before WordPress permanently deletes posts, pages, attachments, and comments, from the trash bin. // Value: time in days (Default: 30) EMPTY_TRASH_DAYS // Allows WordPress to override an image after editing or to save the image as a copy. // Values: true|false IMAGE_EDIT_OVERWRITE // (De)activates the trash bin function for media. // Values: true|false (Default: false) MEDIA_TRASH // Defines the language which WordPress should use. // Values: For German de_DE WPLANG // Defines a default theme for new sites, also used as fallback for a broken theme. // Value: template name (Default: twentyeleven) WP_DEFAULT_THEME // Defines a period of time in which only one cronjob will be fired. Since WordPress 3.3. // Value: time in seconds (Default: 60) WP_CRON_LOCK_TIMEOUT // Defines a period of time in which only one mail request can be done. // Value: time in seconds (Default: 300) WP_MAIL_INTERVAL // (De)activates the revision function for posts. A number greater than 0 defines the number of revisions for one post. // Values: true|false|number (Default: true) WP_POST_REVISIONS // Allows you to change the maximum memory limit for some WordPress functions. // Values: See PHP docs (Default: 256M) WP_MAX_MEMORY_LIMIT /////////////////////////////////////// // Status /////////////////////////////////////// // Doing WP-CLI Command WP_CLI // Doing REST API Request REST_REQUEST // Defines the memory limit for WordPress. // Values: See PHP docs (Default: 32M, for Multisite 64M) WP_MEMORY_LIMIT // Will be defined if it's an Atom Publishing Protocol request. // Value: true APP_REQUEST // Will be defined if the comments template is loaded. // Value: true COMMENTS_TEMPLATE // Will be defined if it's an AJAX request. // Value: true DOING_AJAX // Will be defined if WordPress is doing an autosave for posts. // Value: true DOING_AUTOSAVE // Will be defined if WordPress is doing a cronjob. // Value: true DOING_CRON // Will be defined if it's an inlineframe request. // Value: true IFRAME_REQUEST // Will be defined if a user change his profile settings. // Value: true IS_PROFILE_PAGE // Can be defined to load only the half of WordPress. // Value: true SHORTINIT // Will be defined if it's a request in backend of WordPress. // Value: true WP_ADMIN // Will be defined if it's a request in /wp-admin/. // Value: true WP_BLOG_ADMIN // Will be defined if WordPress is importing data. // Value: true WP_IMPORTING // Will be defined on an new installation or on an upgrade. // Value: true WP_INSTALLING // Will be defined if it's a request in network admin or on installing a network. Since WordPress 3.3, previous WP_NETWORK_ADMIN_PAGE. // Value: true WP_INSTALLING_NETWORK // Will be defined if you visit the importer overview (Tools → Importer). // Value: true WP_LOAD_IMPORTERS // Will be defined if it's a request in /wp-admin/network/. // Value: true WP_NETWORK_ADMIN // Will be defined if it's a request to /wp-admin/maint/repair.php. // Value: true WP_REPAIRING // Will be defined if WordPress will be installed or configured. // Value: true WP_SETUP_CONFIG // Will be defined if a plugin wil be uninstalled (for uninstall.php). // Value: true WP_UNINSTALL_PLUGIN // Will be defined if it's a request in /wp-admin/user/. // Value: true WP_USER_ADMIN /////////////////////////////////////// // Paths, dirs and links /////////////////////////////////////// // Will be defined if it's a request over the XML-RPC API. // Value: true XMLRPC_REQUEST // Absolute path to the WordPress root dir. // Default: path to wp-load.php ABSPATH // Relative path to the /wp-includes/. You can't change it. // Default: wp-includes WPINC // Absolute path to the folder with language files. // Default: WP_CONTENT_DIR /languages or WP_CONTENT_DIR WPINC /languages WP_LANG_DIR // Absolute path to the plugins dir. // Default: WP_CONTENT_DIR /plugins WP_PLUGIN_DIR // URL to the plugins dir. // Default: WP_CONTENT_URL /plugins WP_PLUGIN_URL // Absolute path to thewp-content dir. // Default: ABSPATH wp-content WP_CONTENT_DIR // URL to the wp-content dir. // Default: {Site URL}/wp-content WP_CONTENT_URL // Home URL of your WordPress. WP_HOME // URL to the WordPress root dir. WP_SITEURL // Absolute path to a dir, where temporary files can be saved. WP_TEMP_DIR // Absolute path to the must use plugin dir. // Default: WP_CONTENT_DIR /mu-plugins WPMU_PLUGIN_DIR /////////////////////////////////////// // Database /////////////////////////////////////// // URL to the must use plugin dir. // Default: WP_CONTENT_URL /mu-plugins WPMU_PLUGIN_URL // Defines the database charset. // Values: See MySQL docs (Default: utf8) DB_CHARSET // Defines the database collation. // Values: See MySQL docs (Default: utf8_general_ci) DB_COLLATE // Defines the database host. // Values: IP address, domain and/or port (Default: localhost) DB_HOST // Defines the database name. // Value: database name DB_NAME // Defines the database password. DB_PASSWORD // Defines the database user. DB_USER // Allows you to automatically repair and optimize the database tables via /wp-admin/maint/repair.php. // Value: true WP_ALLOW_REPAIR // Allows you to define a custom user table. // Value: table name CUSTOM_USER_TABLE /////////////////////////////////////// // Multisite /////////////////////////////////////// // Allows you to define a custom user meta table. // Value: table name CUSTOM_USER_META_TABLE // Allows you to install Multisite in a subdirectory. // Value: true ALLOW_SUBDIRECTORY_INSTALL // Absolute path to the site specific upload dir. // Default: WP_CONTENT_DIR /blogs.dir/{Blog ID}/files/ BLOGUPLOADDIR // Blog ID of the main site. // Default: 1 BLOG_ID_CURRENT_SITE // Domain of the main site. // Default: domain DOMAIN_CURRENT_SITE // When defined database errors will be displayed on screen. // Value: true DIEONDBERROR // When defined database erros will be logged into a file. // Value: absolute path to a writeable file ERRORLOGFILE // Will be defined if Multisite is used. // Value: true MULTISITE // Defines an URL of a site on which WordPress should redirect, if registration is closed or a site doesn't exists. // Values: %siteurl% for mainsite or custom URL NOBLOGREDIRECT // Path to the main site. PATH_CURRENT_SITE // Path to the upload base dir, relative to ABSPATH. // Default: wp-content/blogs.dir UPLOADBLOGSDIR // Network ID of the main site. // Default: 1 SITE_ID_CURRENT_SITE // Defines if it's a subdomain install or not. // Values: true|false SUBDOMAIN_INSTALL // When defined WordPres will load the /wp-content/sunrise.php file. // Value: true SUNRISE // Path to site specific upload dir, relative to ABSPATH. // Default: UPLOADBLOGSDIR /{blogid}/files/ UPLOADS // (De)activates support for X-Sendfile Header. // Values: true|false (Default: false) WPMU_ACCEL_REDIRECT // (De)activates support for X-Accel-Redirect Header. // Values: true|false (Default: false) WPMU_SENDFILE // When defined the multisite function will be accessible (Tools → Network Setup). // Value: true WP_ALLOW_MULTISITE /////////////////////////////////////// // Cache and script compressing /////////////////////////////////////// // When defined WordPres will load the /wp-content/advanced-cache.php file. // Values: true|false (Default: false) WP_CACHE // (De)activates the compressing of stylesheets. // Values: true|false COMPRESS_CSS // (De)activates the compressing of Javascript files. // Values: true|false COMPRESS_SCRIPTS // (De)activates the consolidation of Javascript or CSS files before compressing. // Values: true|false CONCATENATE_SCRIPTS // (De)activates gzip output. // Values: true|false ENFORCE_GZIP /////////////////////////////////////// // Filesystem and connections /////////////////////////////////////// // Defines the read and write permissions for directories. // Values: See PHP handbook (Default: 0755) FS_CHMOD_DIR // Defines the read and write permissions for files. // Values: See PHP handbook (Default: 0644) FS_CHMOD_FILE // Defines a timeout for building a connection. // Values: time in seconds (Default: 30) FS_CONNECT_TIMEOUT // Defines the method to connect to the filesystem. // Values: direct|ssh|ftpext|ftpsockets FS_METHOD // Defines a timeout after a connection has been lost. // Values: time in seconds (Default: 30) FS_TIMEOUT // Path to the WordPress root dir. // Default: ABSPATH FTP_BASE // Path to the /wp-content/ dir. // Default: WP_CONTENT_DIR FTP_CONTENT_DIR // Defines the FTP host. // Values: IP Adresse, Domain und/oder Port FTP_HOST // Path to the folder with language files. // Default: WP_LANG_DIR FTP_LANG_DIR // Defines the FTP password. FTP_PASS // Path to the plugin dir. // Default: WP_PLUGIN_DIR FTP_PLUGIN_DIR // Defines a private key for SSH. FTP_PRIKEY // Defines a public key for SSH. FTP_PUBKEY // (De)activates SSH. // Values: true|false FTP_SSH // (De)activates SSL. // Values: true|false FTP_SSL // Defines the FTP username. FTP_USER // Allows you to define some adresses which shouldn't be passed through a proxy. // Values: www.example.com, *.example.org WP_PROXY_BYPASS_HOSTS // Defines the proxy adresse. // Values: IP address or domain WP_PROXY_HOST // Defines the proxy password. WP_PROXY_PASSWORD // Defines the proxy port. WP_PROXY_PORT // Defines the proxy username. WP_PROXY_USERNAME // Allows you to block external request. // Values: true|false WP_HTTP_BLOCK_EXTERNAL // If WP_HTTP_BLOCK_EXTERNAL is defined you can add hosts which shouldn't be blocked. // Values: www.example.com, *.example.org WP_ACCESSIBLE_HOSTS /////////////////////////////////////// // Themes /////////////////////////////////////// // Defines a default background image. BACKGROUND_IMAGE // Defines a default header image. HEADER_IMAGE // Defines the height of the header image. HEADER_IMAGE_HEIGHT // Defines the width of the header image. HEADER_IMAGE_WIDTH // Defines the font color for the header text. HEADER_TEXTCOLOR // (De)activates the support for header text. // Values: true|false NO_HEADER_TEXT // Defines the absolute path to the stylesheet of the current theme. STYLESHEETPATH // Defines the absolute path to the template files of the current theme. TEMPLATEPATH // (De)activates the loading of themes. // Values: true|false WP_USE_THEMES /////////////////////////////////////// // Debug /////////////////////////////////////// // (De)activates the saving of database queries in an array ($wpdb->queries). // Values: true|false SAVEQUERIES // (De)activates the loading of compressed Javascript and CSS files. // Values: true|false SCRIPT_DEBUG // (De)activates the debug mode in WordPress. // Values: true|false (Default: false) WP_DEBUG // (De)activates the display of errors on the screen. // Values: true|false|null (Default: true) WP_DEBUG_DISPLAY // (De)activates the writing of errors to the /wp-content/debug.log file. // Values: true|false (Default: false) WP_DEBUG_LOG /////////////////////////////////////// // Security and cookies /////////////////////////////////////// // Path to the /wp-admin/ dir. // Default: SITECOOKIEPATH wp-admin or for Multisite in subdirectory SITECOOKIEPATH ADMIN_COOKIE_PATH // Allows unfiltered uploads by admins. // Value: true ALLOW_UNFILTERED_UPLOADS // Cookie name for the authentication. // Default: wordpress_ COOKIEHASH AUTH_COOKIE // Secret key. // Values: See generator AUTH_KEY // Secret key. // Values: See generator AUTH_SALT // Hash for generating cookie names. COOKIEHASH // Path to WordPress root dir. // Default: Home URL without http(s):// COOKIEPATH // Domain of the WordPress installation. // Default: false or for Multisite with subdomains .domain of the main site COOKIE_DOMAIN // Allows you to override the list of secure HTML tags. See /wp-includes/kses.php. // Values: true|false (Default: false) CUSTOM_TAGS // Allows you to disallow theme and plugin edits via WordPress editor. // Value: true DISALLOW_FILE_EDIT // Allows you to disallow the editing, updating, installing and deleting of plugins, themes and core files via WordPress Backend. // Value: true DISALLOW_FILE_MODS // Allows you to disallow unfiltered HTML for every user, admins too. // Value: true DISALLOW_UNFILTERED_HTML // Activates SSL for logins and in the backend. // Values: true|false (Default: false) FORCE_SSL_ADMIN // Activates SSL for logins. // Values: true|false (Default: false) FORCE_SSL_LOGIN // Cookie name for logins. // Default: wordpress_logged_in_ COOKIEHASH LOGGED_IN_COOKIE // Secret key. // Values: See generator LOGGED_IN_KEY // Secret key. // Values: See generator LOGGED_IN_SALT // Secret key. // Values: See generator NONCE_KEY // Secret key. // Values: See generator NONCE_SALT // Cookie name for the password. // Default: wordpresspass_ COOKIEHASH PASS_COOKIE // Path to the plugins dir. // Default: WP_PLUGIN_URL without http(s):// PLUGINS_COOKIE_PATH // Cookie name for the SSL authentication. // Default: wordpress_sec_ COOKIEHASH SECURE_AUTH_COOKIE // Secret key. // Values: See generator SECURE_AUTH_KEY // Secret key. // Values: See generator SECURE_AUTH_SALT // Path of you site. // Default: Site URL without http(s):// SITECOOKIEPATH // Cookie name for the test cookie. // Default: wordpress_test_cookie TEST_COOKIE // Cookie name for users. // Default: wordpressuser_ COOKIEHASH USER_COOKIE

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.