WP API, Comments Not Sending Notifications
-
Hello,
I’ve noticed that when comments are created using the WP API that notification emails are not sent out to the author or moderators.
If I add the comment via the admin interface, it is working fine. On debugging, I noticed that the filter ‘comment_post’ is not being called when inserted via the API.
For now, I found a workaround as follows:
function mytheme_comment_inserted($comment_id, $comment_object) { wp_notify_postauthor( $comment_id ); } add_action('wp_insert_comment','mytheme_comment_inserted');
But I’m wondering if this is desired behaviour or in fact if this should be reported as a bug?
Thanks!
Chris
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘WP API, Comments Not Sending Notifications’ is closed to new replies.