friends_notification_accepted_request_message

Filters the message for the friend request accepted email.

Description

apply_filters( 'friends_notification_accepted_request_message', (string) $value, (string) $tokens_friend_name, (string) $tokens_friendship_url, (string) $var ); 

Parameters (4)

0. $value (string)
Message to be used in friend request email.
1. $tokens_friend_name (string)
Name of the person who accepted the friendship request.
2. $tokens_friendship_url (string)
Profile link of person who accepted the friendship request.
3. $var (string) => ''
Removed in 2.5; now an empty string.

Usage

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

Defined (1)

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

/bp-core/deprecated/2.5.php  
  1. $value = apply_filters( 'friends_notification_accepted_request_message', $value, $tokens['friend.name'], $tokens['friendship.url'], '' );