<filter>

Filters single accepted group membership request notification for non-string format.

Description

apply_filters( '<filter>', (callback) $array, (string) $group_link, (string) $group_name, (string) $text, (string) $notification_link ); 

Complete filter - bp_groups_single_membership_request_accepted_notification.

Parameters (5)

0. $array — Optional. (callback) => array( 'link' => $notification_link, 'text' => $text )
Array holding permalink and content for notification.
1. $group_link (string)
The permalink for the group.
2. $group_name (string)
Name of the group.
3. $text (string)
Notification content.
4. $notification_link (string)
The permalink for notification.

Usage

To run the hook, copy the example below.
  1. $array = apply_filters( '{$filter}', $array, $group_link, $group_name, $text, $notification_link ); 
  2.  
  3. if ( !empty( $array ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the <filter> callback 
  2. function filter_filter( $array, $group_link, $group_name, $text, $notification_link ) { 
  3. // make filter magic happen here... 
  4. return $array
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( "{$filter}", 'filter_filter', 10, 5 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( "{$filter}", 'filter_filter', 10, 5 ); 

Defined (1)

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

/bp-groups/bp-groups-notifications.php  
  1. return apply_filters( $filter, array(