• 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);

    Thank you!

  • The topic ‘How to perform an action after marking a comment as spam’ is closed to new replies.