Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: modifying the email template of friend requests

@shanebp

Moderator

For friend request emails, use the filter hooks in function friends_notification_new_request
located in this file: buddypress\bp-friends\bp-friends-notifications.php

For example:

function panda_friend_request_message( $message, $initiator_name, $initiator_link, $all_requests_link, $settings_link ) {

    $message = 'This will completely replace the message';

    return $message;
}
add_filter( 'friends_notification_new_request_message', 'panda_friend_request_message', 15, 5 );

Not that easy, but currently the only available method.
There is a new method being developed and scheduled for BP 2.4.5 which has a target release date of March 2016.
https://buddypress.trac.wordpress.org/ticket/6592

Skip to toolbar