WP_CONTENT_DIR
No trailing slash, full paths only - WP_CONTENT_URL is defined further down.
Value (string)
ABSPATH . 'wp-content'
Usage
if ( defined( 'WP_CONTENT_DIR' ) ) { // grab the value $value = constant( 'WP_CONTENT_DIR' ); if ( !empty( $value ) ) { // go forth and prosper... } }
Defined (2)
The constant is defined in the following location(s).
- /wp-includes/default-constants.php
- define( 'WP_CONTENT_DIR', ABSPATH . 'wp-content' ); // no trailing slash, full paths only - WP_CONTENT_URL is defined further down
- /wp-load.php
- define( 'WP_CONTENT_DIR', ABSPATH . 'wp-content' );