Tag Info

New answers tagged

0

OK, I finally made it following this crystal clear tut Consequently, my functions.php became: add_action( 'comment_form_logged_in_after', 'additional_fields' ); add_action( 'comment_form_after_fields', 'additional_fields' ); function additional_fields () { echo '<p class="comment-form-title">'. '<label for="title">' . __( 'Titre (Je ...


0

You are missing 2 parameters in your function report_spam. Also the priority should not be 1. Try the code below. add_action('transition_comment_status', 'report_spam', 10, 3); function report_spam($new_status, $old_status, $comment){ if($new_status == 'spam'){ var_dump($comment->comment_author_IP); die; } } I've set die so ...



Top 50 recent answers are included