How to disable email notifications for post status changes

In the WordPress.org forum, a user wanted to know how to disable email notifications for post status changes without also disabling email notifications for new editorial comments. Edit Flow makes this pretty simple to do. Simply add the following snippet to the functions.php file of your active theme and you’re good to go!

As of v0.6, Edit Flow hooks into ‘transition_post_status’ to add an email notification when the post status changes. To disable these email notifications, all you need to do is remove the hook.

Comments

  1. It’s a pity you guys don’t have a dedicated contact page. Just wanted to tell you what a brilliant plugin I think this is. I was looking for editorial calendar and I came across this.

    Am actually thinking of outsourcing my copy editing and using this plugin! Again, thanks a ton…

  2. Rich Johnson says:

    This works on one of my Websites (which is running WordPress 3.0.2), but when I tried to do this on my newest site, which is running 3.1, WordPress itself completely crashes and I have to go into the php files in a text editor and remove it manually.

    Is there a difference between 3.1 and 3.02 that would cause this code to not work? We have too many people, stories in our newsroom to send a status for every post status change.

  3. Rich Johnson says:

    I haven’t used the WP_Debug.

    It hasn’t been giving me any specific errors that I can see. Editflow works fine until I try to remove the user notifications.

    When I post the code on this page in the theme editor and update the file, the whole thing goes down. I can’t get the site or the WordPress dashboard to load anymore. I have to go back into folders the theme is saved in and then remove it from the functions.php file.

    I wasn’t sure if it was because of the theme I was using, so I reactivated the default WordPress theme, and tried it again and it did the same thing. The page just doesn’t load (neither does the dashboard) and it just has a “This site is unavailable” message in Chrome and a blank page in Firefox.

    It works fine in our other website, however. I even copied and pasted the code directly into the new site from the old one, but it doesn’t work …

    I’m fairly new to WordPress, so maybe it’s just me. I don’t know.

Speak Your Mind

*