DB_NAME

The WordPress Core DB NAME constant.

Value (string)

$dbname 

Usage

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

Defined (2)

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

/wp-admin/setup-config.php  
  1. define('DB_NAME', $dbname); 
/wp-config-sample.php  
  1. define('DB_NAME', 'database_name_here');