Support Forum

How to make all posts emails to be sent to diffrerent email

JM Jonathan Munoz
Jonathan Munoz
Member

Currently it is being sent to my main email i want to emails when people post on the forum to go to a different email

3 Answers

New Answer

MP Mr Papa
Mr Papa
Member

admin notification emails go to the email address you have specified in your profile (the sp one)…

if you want to change that, you can use one of our filters, sph_admin_email_addresses, to change your particular address… if you need help using a standard wp filter, just holler…

JM Jonathan Munoz
Jonathan Munoz
Member

Thank you. How do i add that filter and where?

MP Mr Papa
Mr Papa
Member

in the spFunctions.php file of your sp theme (and be sure to make your own to keep from losing changes on updates), add this

add_filter(‘sph_admin_email_addresses’, ‘my_admin_email_filter’); function my_admin_email_filter($addresses) $addresses = str_replace(‘old_email_address’, ‘new_email_address’, $addresses); return $addresses }