If you don’t want to auto-subscribe yourself either when adding a comment or when editing the post, simply add the following to functions.php:
add_filter( 'ef_notification_auto_subscribe_current_user', '__return false' );
If, instead, you only want to turn off auto-subscription for one of those two actions, you’d do something like the following:
function efx_dont_auto_subscribe_for_editorial_comments( $auto_subscribe, $subscription_type ) {
if ( $subscription_type === 'comment' )
return false;
return $auto_subscribe;
}
add_filter( 'ef_notification_auto_subscribe_current_user', 'efx_dont_auto_subscribe_for_editorial_comments', 10, 2 );
To instead turn off auto-subscription only when editing a post (rather than posting an editorial comment), change the first line of the function to:
if ( $subscription_type === 'subscription_action' )
Hope that helps!
-Scott
I’ve added a page explaining a solution to this question in even more detail on our web site here: http://editflow.org/extend/disable-auto-subscribing-users-for-notifications/
Steve, did this code work for you?
Scott, I’ve been in meeting hell since I posted the request. I’m hoping to try out the code this afternoon, so that I can include it in training sessions I’ll be presenting next week.
I added the code to functions.php, reversing the situation so that it would disable auto-subscribes for post changes but keep them for comments, and it worked exactly as desired. Thanks!
The piece that isn’t quite as expected is that the original post author is no longer auto-subscribed when the post it first created (part of the problem reported by hermy65 in a separate thread). Now that there’s a way to allow users to unsubscribe themselves, I’d lobby to restore the auto-subscription of author upon creation, as the author is the person most likely to want to know about changes or comments.
Intriguing… I’m out of town but will take a more detailed look early this coming week.
As it turns out, this is a bug and regression 🙂 I’m working on a solution now and it will be out in v0.7.1. Sorry for the inconvenience.