bp_is_user_profile_edit

Is the current page part of a user's profile editing section?.

Description

bp_is_user_profile_edit(); 

Eg http://example.com/members/joe/profile/edit/ (or a subpage thereof).


Usage

  1. if ( !function_exists( 'bp_is_user_profile_edit' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-core/bp-core-template.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bp_is_user_profile_edit(); 
  7.  

Defined (1)

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

/bp-core/bp-core-template.php  
  1. function bp_is_user_profile_edit() { 
  2. return (bool) ( bp_is_profile_component() && bp_is_current_action( 'edit' ) );