friends_notification_accepted_request_subject

Filters the subject for the friend request accepted email.

Description

apply_filters( 'friends_notification_accepted_request_subject', (string) $value, (string) $tokens_friend_name ); 

Parameters (2)

0. $value (string)
Subject line to be used in friend request accepted email.
1. $tokens_friend_name (string)
Name of the person who accepted the friendship request.

Usage

To run the hook, copy the example below.
  1. $value = apply_filters( 'friends_notification_accepted_request_subject', $value, $tokens_friend_name ); 
  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_subject callback 
  2. function filter_friends_notification_accepted_request_subject( $value, $tokens_friend_name ) { 
  3. // make filter magic happen here... 
  4. return $value
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'friends_notification_accepted_request_subject', 'filter_friends_notification_accepted_request_subject', 10, 2 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'friends_notification_accepted_request_subject', 'filter_friends_notification_accepted_request_subject', 10, 2 ); 

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_subject', $value, $tokens['friend.name'] );