Skip to:
Content
Pages
Categories
Search
Top
Bottom

modifying the email template of friend requests


  • maxcutex
    Participant

    @maxcutex

    How can i modify the email template of a friend request in buddypress that is used in WordPress

Viewing 3 replies - 1 through 3 (of 3 total)

  • MadManSam
    Participant

    @madmansam

    I’m with you on this one too. Starting my search here.


    PandaTank
    Participant

    @pandatank

    Does nobody have an answer for this?

    I would really like to know how we can edit the buddypress notification email templates


    shanebp
    Moderator

    @shanebp

    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

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘modifying the email template of friend requests’ is closed to new replies.
Skip to toolbar