Support Forum

How do I customize the subscription notification emails?

34 Answers

New Answer

MP Mr Papa
Mr Papa
Member

so subscriptions plugin has been released with ability to change the email notification subject… after updating, can do something like:

add_filter('sph_subscriptions_email_subject', 'my_subs_subject');
function my_subs_subject($title) {
    $title = 'What you want title to be';
    return $title;
}

in your spFunctions.php theme file…

JD jdevore
jdevore
Member

I can’t get it to work without errors.  I updated the SP plugins with updates. Then after adding filter you supplied to  spFunctions file with the raw code you gave me above, I go to log out of the site to test posting with my test user account and receive the following errors:

 

Warning: Cannot modify header information – headers already sent by (output started at /problem-with-post-edit-buttonome/cpsirv/public_html/marketing/thelink/wp-content/sp-resources/forum-themes/mytheme/templates/spFunctions.php:49) in /problem-with-post-edit-buttonome/cpsirv/public_html/marketing/thelink/wp-login.php on line 365

Warning: Cannot modify header information – headers already sent by (output started at /problem-with-post-edit-buttonome/cpsirv/public_html/marketing/thelink/wp-content/sp-resources/forum-themes/mytheme/templates/spFunctions.php:49) in /problem-with-post-edit-buttonome/cpsirv/public_html/marketing/thelink/wp-login.php on line 377

Warning: Cannot modify header information – headers already sent by (output started at /problem-with-post-edit-buttonome/cpsirv/public_html/marketing/thelink/wp-content/sp-resources/forum-themes/mytheme/templates/spFunctions.php:49) in /problem-with-post-edit-buttonome/cpsirv/public_html/marketing/thelink/wp-includes/pluggable.php on line 697

Warning: Cannot modify header information – headers already sent by (output started at /problem-with-post-edit-buttonome/cpsirv/public_html/marketing/thelink/wp-content/sp-resources/forum-themes/mytheme/templates/spFunctions.php:49) in /problem-with-post-edit-buttonome/cpsirv/public_html/marketing/thelink/wp-includes/pluggable.php on line 698

Warning: Cannot modify header information – headers already sent by (output started at /problem-with-post-edit-buttonome/cpsirv/public_html/marketing/thelink/wp-content/sp-resources/forum-themes/mytheme/templates/spFunctions.php:49) in /problem-with-post-edit-buttonome/cpsirv/public_html/marketing/thelink/wp-includes/pluggable.php on line 699

Warning: Cannot modify header information – headers already sent by (output started at /problem-with-post-edit-buttonome/cpsirv/public_html/marketing/thelink/wp-content/sp-resources/forum-themes/mytheme/templates/spFunctions.php:49) in /problem-with-post-edit-buttonome/cpsirv/public_html/marketing/thelink/wp-includes/pluggable.php on line 700

Warning: Cannot modify header information – headers already sent by (output started at /problem-with-post-edit-buttonome/cpsirv/public_html/marketing/thelink/wp-content/sp-resources/forum-themes/mytheme/templates/spFunctions.php:49) in /problem-with-post-edit-buttonome/cpsirv/public_html/marketing/thelink/wp-includes/pluggable.php on line 701

Warning: Cannot modify header information – headers already sent by (output started at /problem-with-post-edit-buttonome/cpsirv/public_html/marketing/thelink/wp-content/sp-resources/forum-themes/mytheme/templates/spFunctions.php:49) in /problem-with-post-edit-buttonome/cpsirv/public_html/marketing/thelink/wp-includes/pluggable.php on line 702

Warning: Cannot modify header information – headers already sent by (output started at /problem-with-post-edit-buttonome/cpsirv/public_html/marketing/thelink/wp-content/sp-resources/forum-themes/mytheme/templates/spFunctions.php:49) in /problem-with-post-edit-buttonome/cpsirv/public_html/marketing/thelink/wp-includes/pluggable.php on line 705

Warning: Cannot modify header information – headers already sent by (output started at /problem-with-post-edit-buttonome/cpsirv/public_html/marketing/thelink/wp-content/sp-resources/forum-themes/mytheme/templates/spFunctions.php:49) in /problem-with-post-edit-buttonome/cpsirv/public_html/marketing/thelink/wp-includes/pluggable.php on line 706

Warning: Cannot modify header information – headers already sent by (output started at /problem-with-post-edit-buttonome/cpsirv/public_html/marketing/thelink/wp-content/sp-resources/forum-themes/mytheme/templates/spFunctions.php:49) in /problem-with-post-edit-buttonome/cpsirv/public_html/marketing/thelink/wp-includes/pluggable.php on line 707

Warning: Cannot modify header information – headers already sent by (output started at /problem-with-post-edit-buttonome/cpsirv/public_html/marketing/thelink/wp-content/sp-resources/forum-themes/mytheme/templates/spFunctions.php:49) in /problem-with-post-edit-buttonome/cpsirv/public_html/marketing/thelink/wp-includes/pluggable.php on line 708

Warning: Cannot modify header information – headers already sent by (output started at /problem-with-post-edit-buttonome/cpsirv/public_html/marketing/thelink/wp-content/sp-resources/forum-themes/mytheme/templates/spFunctions.php:49) in /problem-with-post-edit-buttonome/cpsirv/public_html/marketing/thelink/wp-includes/pluggable.php on line 711

Warning: Cannot modify header information – headers already sent by (output started at /problem-with-post-edit-buttonome/cpsirv/public_html/marketing/thelink/wp-content/sp-resources/forum-themes/mytheme/templates/spFunctions.php:49) in /problem-with-post-edit-buttonome/cpsirv/public_html/marketing/thelink/wp-includes/pluggable.php on line 712

Warning: Cannot modify header information – headers already sent by (output started at /problem-with-post-edit-buttonome/cpsirv/public_html/marketing/thelink/wp-content/sp-resources/forum-themes/mytheme/templates/spFunctions.php:49) in /problem-with-post-edit-buttonome/cpsirv/public_html/marketing/thelink/wp-includes/pluggable.php on line 713

Warning: Cannot modify header information – headers already sent by (output started at /problem-with-post-edit-buttonome/cpsirv/public_html/marketing/thelink/wp-content/sp-resources/forum-themes/mytheme/templates/spFunctions.php:49) in /problem-with-post-edit-buttonome/cpsirv/public_html/marketing/thelink/wp-includes/pluggable.php on line 714

Warning: Cannot modify header information – headers already sent by (output started at /problem-with-post-edit-buttonome/cpsirv/public_html/marketing/thelink/wp-content/sp-resources/forum-themes/mytheme/templates/spFunctions.php:49) in /problem-with-post-edit-buttonome/cpsirv/public_html/marketing/thelink/wp-includes/pluggable.php on line 881

JD jdevore
jdevore
Member

Do I perhaps need to remove the old filter we were working with first?

Here is my spFuntions.php file code:

Capture-1.PNG
JD jdevore
jdevore
Member

I keep getting error messages about not being able to edit header information. I removed all of the filters for the spFunctions code until I hear back from you. Thanks.

MP Mr Papa
Mr Papa
Member

yes, remove the old stuff… and only add the new…  you have an error in the theme you made…

where you have spDefault, you should have spmytheme…  no clue if the cause, but wrong…