Support Forum

Is there a way to prevent the subscription email containing the contents of the post?

DO dobbiedada
dobbiedada
Member

Is there a way to prevent the subscription email containing the contents of the post?  E.g. just give the user a link they can click on to see the post or reply in the forum?

8 Answers

New Answer

BR Brandon
Brandon
Member

dobbiedada said
Is there a way to prevent the subscription email containing the contents of the post?  E.g. just give the user a link they can click on to see the post or reply in the forum?

You can add a filter to the sp_functions file in your SP theme to remove the content.

Something like

add_filter('sph_subs_post_content', 'filter_subs_content',10,3);

function filter_subs_content($post_content, $newpost) {
$newpost= '';
return $newpost;
}

If changing the theme though you should be running a custom one so the changes do not get overwritten on updates.

 

MP Mr Papa
Mr Papa
Member

was answered in your original post too…  https://simple-press.com/support-forum/sp5-plugin-topics/problem-with-post-edit-buttonow-can-user-subscribe-to-forum/

DO dobbiedada
dobbiedada
Member

Mr Papa said

was answered in your original post too…  https://simple-press.com/support-forum/sp5-plugin-topics/problem-with-post-edit-buttonow-can-user-subscribe-to-forum/

I’m not seeing that the subscription question is related to the question of removing the topic from the body of notification emails, am I missing something?

DO dobbiedada
dobbiedada
Member



You can add a filter to the sp_functions file in your SP theme to remove the content.

This is great, many thanks!

DO dobbiedada
dobbiedada
Member

Yup, I will give the sp_functions suggestion a try.