The notify_post_author filter now has the final say on post author notifications

WordPress 7.1 changes when wp_new_comment_notify_postauthor() checks a comment’s approval status: the check now happens before the notify_post_author filter is applied, rather than after. As a result, the filter receives an accurate default value, and its return value fully determines whether a notification is sent. See #64217. Previous behavior The filter received a default derived only from the comments_notify option (or the wp_notes_notify option for notes). The … Continue reading The notify_post_author filter now has the final say on post author notifications