What I am trying to do is create a list of IP addresses each time I click Spam on a comment. The only issue I have now is, how do I get the commentors IP address inside this function.
This is what I am working with... It ties into the onclick event of the Spam button.
add_action('transition_comment_status', 'report_spam', 1);
function report_spam($new_status){
if($new_status == 'spam'){
//do something here with IP
}
}