bp_is_my_profile

  • apply_filters( 'bp_is_my_profile', $my_profile )

    Source Reference:

    • Component: BuddyPress :: bp-core
      File: /bp-core/bp-core-template.php :: Trac Source Line: 1090
      function bp_is_my_profile() {
      	global $bp;
      
      	if ( is_user_logged_in() && $bp->loggedin_user->id == $bp->displayed_user->id )
      		$my_profile = true;
      	else
      		$my_profile = false;
      
      	return apply_filters( 'bp_is_my_profile', $my_profile );
      }
      
      function bp_is_user() {
      	global $bp;
      
      	if ( !empty( $bp->displayed_user->id ) )
      		return true;
      
      	return false;
      }
      

Comments are closed.