Support » Plugins » Hacks » Comment email notification per author

  • Contemplative Computing


    This seems pretty simple but I cannot find an existing plugin or hack anywhere after lots of searching.

    I have a blog with many authors. Some want to receive comment notification emails, some do not. The setting available doesn’t address this. Would anybody be able to to point me in the right direction as to how to hack this function to create an option per user, rather than the only global option currently?

    I’m only a beginner PHP developer, but with some pointers I’d be willing to put some work into this, or possibly pay someone to develop this plugin.


Viewing 1 replies (of 1 total)
  • Moderator bcworkz


    The function that sends the email is wp_notify_postauthor() in wp-includes/pluggable.php. As a pluggable function, you can define your own version in a plugin or child theme and it will be used instead.

    So you just need to modify this function to only send email if a particular user meta option is set to True. Which means you will also need to modify the user options page so that it’s easy to set or unset this option. See the Settings API for how to do this.

Viewing 1 replies (of 1 total)
  • The topic ‘Comment email notification per author’ is closed to new replies.