I do not see the $comment_ID
variable having any value in your code. So try by changing the following code
wp_notify_postauthor($comment_ID, $comment->comment_type);
to
wp_notify_postauthor($comment->comment_ID, $comment->comment_type);
You can also remove $comment->comment_type
as per codex
Related Posts:
- How to change the email notification recipient (user) for new comments?
- If new comment posted in custom post – send notification to custom email from custom field
- Disable Admin account being emailed for comment notification
- WordPress comments email notification for authors
- Send Notifications to All Admins
- Reply By Email to comment notifications
- How do I disable the discussion notification emails to us when a comment is “approved” and when an adiministrator replies?
- Not receiving any e-mails after new comment
- Subscribe to a post’s comments without posting a comment yourself
- How can I edit the email sent when a new comment is received?
- Multiple Comment Moderators and Notifications
- Plugin from WordPress.com for comment notification…available? [closed]
- Follow-up Comments Notification Without a Plug-in
- Reject Comments Based on Author Email
- Same email for all comments
- Error While Sending Comment
- Email notification to an email address other than admin for custom type post comments in wordpress
- Notify post author for a new comment on his post?
- How can the recipients and content for comment email notifications on a custom post type be changed?
- comment reply by email
- Notify comment author upon reply
- How can I get list of emails of users who commented on a post?
- Sent comments notifications to multiple users
- Sending comment notifications to different recipients depending on taxonomy terms
- How to get Post title by locale with Qtranslate-X
- Send email messages after comment was submitted
- How to use filter on comment submission/insert
- How to prevent users/authors from seing IP/email of new commentators?
- How can I see whether a commenter has subscribed to be notified of replies / other comments to a post
- Customize the new comment notifications sent to the post author after the comment is approved
- Alert Email when any Post or Page is Changed
- Enable Submit Comment Without Page Reload (Using Ajax)?
- Getting Post Comments for post ID using WP_Query() and a Custom Loop?
- How to use a custom comments template
- Comment visibility
- Allowing more elements in comments via functions.php
- Set post comments open function
- “Categories” for comments?
- Allow guests comments on single post
- Delayed commenting
- An action hook where a comment meta is updated
- Display number of comment replies
- Last comment page first with full number of comments?
- Only subscriber role user can comment not other
- customize comment form
- Relaxing unescaped HTML filtering inside tags?
- How to get the result of comments_number() as a string instead of printing it out?
- Should I still worry about paginated comments with the latest wordpress versions?
- How to dont allow registered users to comment without being logged in?
- Why is_wp_error() is not returning false even there’s no defined error
- wp_insert_comment and security
- How can someone submit a comment when my site has no comment field?
- Show comments in a popup
- highlight “starred” comments by admin
- How to display html in only the first level of WP comments?
- How can I convert anonymous commenters into registered users?
- your comment awaiting moderation message sometimes not appearing
- Comments vs. Pingbacks next page issue
- WordPress ‘comment counts’ got messed up, because of a plugin – DISQUS
- blank page after submitting a comment
- Remove post navigation links
- Display only 1 comment and then option to show more
- cancel reply link results in 404 error
- Prioritizing the wordpress comments
- Which filter/hook to use for styling comments?
- How should I get the original comment while processing the reply
- How to override wp_insert_comment()
- I wish to remove, disable or hide the comment authors’ links to their sites from my home page
- How to stop ultimate members to redirect comment authors to user profile?
- How modify the comment content persistently based on $wp_query?
- Displaying Posts Depending on Number of Comments and Latest Comments?
- How do I stop the comments going to my email?
- How to implement just the wp commenting area on my custom site?
- anyone can help me to know whats going wrong? [closed]
- Get comment id of the individual comments in comment list when modifying comment posted using comment text filter
- get_comment_meta not behaving as expected
- comments_popup_link() – how to load different classes/images according to different comment condition?
- How do I get a array, with the right order of the nested comments?
- Display last comments on home page
- Clicking Comment “Reply” Button only replies to first comment
- comment form code redirect to wp_comments_post.php with blank page
- Parent comment’s author display_name
- How to show a list of comments on home page from all posts?
- WordPress Custom Local Avatar not showing in comments
- Create another comment section for WordPress
- Remove text on Comment count
- wp list all users who haven’t commented on a post
- Creating a “walled garden” of comments
- How Can I display the Current Logged-In User’s Comment at the Top of the Comments Section in WordPress?
- How to import facebook comments to WordPress database?
- Can’t check “Allow people to post comments on new articles” option
- Comments closed only for contributors
- Comments from other blogs are getting added to my blog?
- Comment-Meta doesn’t work with latest wordpress update
- Insert comment and still use moderation
- Auto approve all comments (editor)
- add field comment [duplicate]
- Let users comment on categories in WordPress
- Customize comment notification e-mails with HTML
- TinyMCE in comment reply form showing toolbar but can’t edit reply