bp_members_edit_profile_url

Filters the user profile URL to point to BuddyPress profile edit.

Description

apply_filters( 'bp_members_edit_profile_url', (unknown) $profile_link, (unknown) $url, (unknown) $user_id, (unknown) $scheme ); 

Parameters (4)

0. $profile_link (unknown)
The profile link.
1. $url (unknown)
The url.
2. $user_id (unknown)
The user id.
3. $scheme (unknown)
The scheme.

Usage

To run the hook, copy the example below.
  1. $profile_link = apply_filters( 'bp_members_edit_profile_url', $profile_link, $url, $user_id, $scheme ); 
  2.  
  3. if ( !empty( $profile_link ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the bp_members_edit_profile_url callback 
  2. function filter_bp_members_edit_profile_url( $profile_link, $url, $user_id, $scheme ) { 
  3. // make filter magic happen here... 
  4. return $profile_link
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'bp_members_edit_profile_url', 'filter_bp_members_edit_profile_url', 10, 4 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'bp_members_edit_profile_url', 'filter_bp_members_edit_profile_url', 10, 4 ); 

Defined (1)

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

/bp-members/bp-members-filters.php  
  1. return apply_filters( 'bp_members_edit_profile_url', $profile_link, $url, $user_id, $scheme );