WP_USER_ADMIN

The WordPress Core WP USER ADMIN constant.

Value (bool)

false 

Usage

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

Defined (2)

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

/wp-admin/admin.php  
  1. define('WP_USER_ADMIN', false); 
/wp-admin/user/admin.php  
  1. define('WP_USER_ADMIN', true);