Customised Topic and Reply URLs
-
I am trying to pass on the recipients email in the topic or reply urls in the notification email. for instance, the user with the email, [email protected], should get something like the following in his notification mail
https://www.testsite.com/forums/topic/for-testing/[email protected]
I tried this but did not work :
add_filter( ‘bbpnns_filter_email_body_for_user’, ‘my_filter_email_body_for_user’,10,3 );
function my_filter_email_body_for_user($body, $user_info, $type, $post_id, $forum_id )
{
$this_email= $user_info->user_email;
$topic_url=$topic_url.”?recipient_email=”.$this_email;
$body = str_replace( ‘[topic-url]’, $topic_url, $body );
return $body;
}Any help will be greatly appreciated
- The topic ‘Customised Topic and Reply URLs’ is closed to new replies.