Support Forum
Would like to change the PM notification email a bit like this:
----------------------------------------------------------------------------------------------------------
"There is a new private message for you on the forum at: ***INBOX LINK***
From: *USER*
Title: *TITLE*
***WEBSITE LINK - REMOVE***
***ADD***
Regards,
*WEBSITE NAME* (NO LINK)*"
------------------------------------------------------------------------------------------------------------
I assume it has to be done in a way like described in this thread: https://simple-press.com/suppo.....ification/
That is meant for subscriptions though, can you clarify how it should be done for this? Much appreciated!
similar.. you will have to use filters to change it up... the filters are:
subject - sph_pm_email_subject
content - sph_pm_email_notification
as drastic a change as you want to make, you will probably just want to rebuild the passed filter value your self using the passed argument containing the pm object...
Visit Cruise Talk Central and Mr Papa's World
something like this... adjust as needed...
add_filter('sph_pm_email_subject', 'my_pm_mail_subject', 10, 2); function my_pm_mail_subject($title, $email) { $title = 'This is my new title'; return $title; }
add_filter('sph_pm_email_notification', 'my_pm_mail_content', 10, 2); function my_pm_mail_content($msg, $email) { $msg = 'This is my email content'; return $msg; }
if you need the link to the inbox, you can get it with:
$url = sp_url('private-messaging/inbox');
Visit Cruise Talk Central and Mr Papa's World
1 Guest(s)