I need to perform an action (copy comment's author ID and the IP address) after making a comment as spam. I just know that I should use a function called "wp_set_comment_status", but I am unable to figure out how to do it. Could you help me, please? How to make this work? ↓ do_action('wp_set_comment_status', $comment_id, $comment_status); add_action('wp_set_comment_status', 'my_function', 2); Code (markup): Thank you!
wordpress comments system is bit difficult. USe disqus or intendebate comments. You can stop spam comments easily and there are many options available that can increase traffic.