WordPress.org

Forums

Edit Flow
[resolved] Notification only for Editorial Comments (4 posts)

  1. skariko
    Member
    Posted 4 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

  2. Daniel Bachhuber
    Hand Built
    Plugin Author

    Posted 4 years ago #

    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

  3. skariko
    Member
    Posted 4 years ago #

    wow.
    It seems work like a charm.
    Thank you! :)

  4. Daniel Bachhuber
    Hand Built
    Plugin Author

    Posted 4 years ago #

    Wonderful! Keep the feedback and ideas coming

    Cheers,

    Daniel

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Edit Flow
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic