IS_PROFILE_PAGE

The WordPress Core IS PROFILE PAGE constant.

Value (bool)

true 

Usage

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

Defined (2)

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

/wp-admin/profile.php  
  1. define('IS_PROFILE_PAGE', true); 
/wp-admin/user-edit.php  
  1. define( 'IS_PROFILE_PAGE', ( $user_id == $current_user->ID ) );