skariko
Member
Posted 2 years ago #
Hi,
i've installed your *great* plugin but i can't do one thing.
I need to send email to the author ONLY when i send an EDITORIAL COMMENTS.
I don't need email notification for the status change.
There's a way to do it?
The best is that the user will setup with a checkbox what email receive. Only Editorial Comments or all.. or nothing.
Thanks for all.
Andrea
Hey there,
Edit Flow email notifications on status change are hooked into the 'transition_post_status' action. If you want to disable them entirely, I'd recommend removing that action after the plugin has been loaded. You'd do that with something like this:
function ef_remove_post_status_notifications() {
global $edit_flow;
remove_action( 'transition_post_status', array( &$edit_flow->notifications, 'notification_status_change' ), 10, 3 );
}
add_action( 'init', 'ef_remove_post_status_notifications' );
Add that snippet to the functions.php file in your active WordPress theme and you should be set.
Hope that helps!
Daniel
skariko
Member
Posted 2 years ago #
wow.
It seems work like a charm.
Thank you! :)
Wonderful! Keep the feedback and ideas coming
Cheers,
Daniel