Skip to:
Content
Pages
Categories
Search
Top
Bottom

Editing Buddypress Emails

  • @lveale1983

    Participant

    Hi all

    I am building a buddypress site and would like the ‘friend request’ email to include the full name of the member that has sent it and not just the username.
    However when I go to Emails > All Emails and edit the friend request email there doesn’t seem to be a token that allows this.

    I have spent a lot of time trying different things like trying to create new tokens in my functions.php file but nothing seems to be working.

    Is there any way that I can edit the email to include the user’s name?

    Many thanks in advance

    I am running WordPress 6.8.1 and Buddypress 14.3.4

Viewing 1 replies (of 1 total)
  • @lveale1983

    Participant

    Just an update on this for anyone else that it’s useful for, I got this working using the filter:
    bp_email_set_tokens

    
    add_filter( 'bp_email_set_tokens', 'add_full_name_to_friend_request_email', 11, 3 );
    

    I was able to add a function to create new tokens that could then be used in the emails.

    What I am now not sure how to do is to change the friend request notification content, that seems trickier…

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar