An action hook where a comment meta is updated
I think you only want get_comment and not get_comments on this line: $com=get_comments($comment_id); You are only checking for a single comment, by the ID. get_comments won’t do that the way you are using it. There is a check halfway through the update_metadata function that compares the existing value to new value under some circumstances. That … Read more