bp_edit_profile_button

Render an edit profile button.

Description

bp_edit_profile_button(); 

Usage

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

Defined (1)

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

/bp-xprofile/bp-xprofile-template.php  
  1. function bp_edit_profile_button() { 
  2. bp_button array( 
  3. 'id' => 'edit_profile',  
  4. 'component' => 'xprofile',  
  5. 'must_be_logged_in' => true,  
  6. 'block_self' => true,  
  7. 'link_href' => trailingslashit( bp_displayed_user_domain() . bp_get_profile_slug() . '/edit' ),  
  8. 'link_class' => 'edit',  
  9. 'link_text' => __( 'Edit Profile', buddypress ),  
  10. ) );