CMB2_DIR

The Maps Builder CMB2 DIR constant.

Value (string)

trailingslashit( dirname( __FILE__ ) ) 

Usage

  1. if ( defined( 'CMB2_DIR' ) ) { 
  2.  
  3. // grab the value 
  4. $value = constant( 'CMB2_DIR' ); 
  5.  
  6. if ( !empty( $value ) ) { 
  7. // go forth and prosper... 
  8.  

Defined (2)

The constant is defined in the following location(s).

/includes/libraries/metabox/init.php  
  1. define( 'CMB2_DIR', trailingslashit( dirname( __FILE__ ) ) ); 
/vendor/wordimpress/maps-builder-core/includes/libraries/metabox/init.php  
  1. define( 'CMB2_DIR', trailingslashit( dirname( __FILE__ ) ) );