The effects of alcohol on
sustanon 250 leucine for – real weight loss & bodybuilding benefits?
How-to and Troubleshooting
(@ljcn)
Active Member
Joined: 5 years ago
Hi Forum!
we’ve recently switched to wpdiscuz for the private comments feature (it’s a very neat feature for those considering buying it!)
Is it possible to send a notification email to the post owner once a comment has been approved? Comments are not moderated by the post author so we need to notify them of new comments (once approved)
(@ljcn)
Active Member
Joined: 5 years ago
(@asti)
Joined: 8 years ago
Illustrious Member
Posts: 8195
Dec 18, 2020 9:51 am
@ljcn,
You can use the Email me whenever > Anyone posts a comment WordPress option. It allows authors to receive notification that comments have been made, or comments are held for moderation. More info here: https://wpdiscuz.com/docs/wpdiscuz-7/wordpress-settings/comment-subscription/
(@ljcn)
Joined: 5 years ago
Active Member
Posts: 9
Dec 18, 2020 10:29 am
@asti thank you, this emails the post author as soon as the comment is submitted. I need it to send the post author an email only after the comment has been approved via moderation (the same way it does for the comment author)
(@asti)
Joined: 8 years ago
Illustrious Member
Posts: 8195
Dec 19, 2020 8:24 am
@ljcn,
You may ask the post authors to subscribe to the current post.
(@ljcn)
Joined: 5 years ago
Active Member
Posts: 9
Dec 19, 2020 1:33 pm
@asti I'm afraid that's not ideal either (our use case is complicated).
I need to use the notifyonApproving function above - but to send the email to the post author instead of the comment author. Does your code allow custom files to be rendered from the child theme?
I've tried changing $email = $user->user_email; to $email = $post->the_author_email; but I'm missing something.
Could you help or develop this feature? This function worked with our previous plugin (geodirectory), but prefer the wpdiscuz features (private comments especially) so would rather keep using wpdiscuz.