I need to remove the post content from the email sent to users on a site.
I want to remove this part.
$msg.= __('Post', 'sp-subs').": ".$eol.$post_content.$eol.$eol;
In the plugin it would be easy to comment out that line.
# subscribers message
$msg = '';
$msg.= __('New post on a forum or topic you are subscribed to at', 'sp-subs').' '.get_option('blogname').':'.$eol.$eol;
$msg.= __('From', 'sp-subs').': '.$newpost['postername'].$eol;
$msg.= __('Group', 'sp-subs').': '.$groupname.$eol;
$msg.= __('Forum', 'sp-subs').': '.$forumname.$eol;
$msg.= __('Topic', 'sp-subs').': '.$topicname.$eol;
$msg.= __('URL', 'sp-subs').': '.urldecode($newpost['url']).$eol.$eol;
# $msg.= __('Post', 'sp-subs').": ".$eol.$post_content.$eol.$eol;
$msg.= __('To unsubscribe, please visit your profile', 'sp-subs').': '.sp_get_sfqurl(sp_url('profile')).'ptab=subscriptions&pmenu=topic-subscriptions'.$eol;
# let plugins hook into this email
$msg = apply_filters('sph_subscriptions_notification', $msg, $newpost);
But so I would not have to be concerned with future updates how would the best way to use the filter to do this?