WordPress.org

Support

Support » Plugins and Hacks » wp_notify_postauthor doesn't appear to be active

wp_notify_postauthor doesn't appear to be active

Viewing 2 replies - 1 through 2 (of 2 total)
  • So after further digging, it seems I was wrong about my expectations. It seems ( around line 1400 in wp_includes/comment.php) that wp_notify_postauthor is only triggered when the comment is a approved.

    So why, then, is the post author being notified by wp_notify_moderator? Shouldn’t this function only notify the moderator and not the author?

    I think I figured it out. The wp_notify_moderator checks to see if the post author (why?!?) can “edit_comment” – a capability that is listed as added in WordPress 3.1 but not explained in the Codex – http://codex.wordpress.org/Roles_and_Capabilities#edit_comment

    I ended up having to redefine wp_notify_moderator to disable author comment notifications.

    Hopefully this explanation helps someone else.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘wp_notify_postauthor doesn't appear to be active’ is closed to new replies.