DB_USER

The WordPress Core DB USER constant.

Value (string)

$uname 

Usage

  1. if ( defined( 'DB_USER' ) ) { 
  2.  
  3. // grab the value 
  4. $value = constant( 'DB_USER' ); 
  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_USER', $uname); 
/wp-config-sample.php  
  1. define('DB_USER', 'username_here');