WP_PLUGIN_DIR
Full path, no trailing slash.
Value (string)
WP_CONTENT_DIR . '/plugins'
Usage
if ( defined( 'WP_PLUGIN_DIR' ) ) { // grab the value $value = constant( 'WP_PLUGIN_DIR' ); if ( !empty( $value ) ) { // go forth and prosper... } }
Defined (1)
The constant is defined in the following location(s).
- /wp-includes/default-constants.php
- define( 'WP_PLUGIN_DIR', WP_CONTENT_DIR . '/plugins' ); // full path, no trailing slash