Forums
Forums / Plugins / Hacks / Notify comment author upon comment approval
(@naoshad)
15 years, 1 month ago
Hi,
I was trying to send a mail to the comment author when a pending/on hold/moderated comments get approved by the admin. But nothing happened for me.
function notify_author($comment_ID, $status) { if($status=='approve'){ //mail to author } add_action('wp_set_comment_status', 'notify_author', 10, 2 );
But It didn’t work for me. Anybody know with which hook I have to work with?
The topic ‘Notify comment author upon comment approval’ is closed to new replies.
(@naoshad)
15 years, 1 month ago
Hi,
I was trying to send a mail to the comment author when a pending/on hold/moderated comments get approved by the admin. But nothing happened for me.
But It didn’t work for me. Anybody know with which hook I have to work with?