What should I hook to add extra fields to comments?
First you have to add your input fields to comment form. You can use these two hooks for that: comment_form_logged_in_after comment_form_after_fields Here’s how: function add_my_custom_field_to_comment_form() { ?> <p class=”comment-form-<FIELD_ID>”> <label for=”<FIELD_ID>”><?php _e( ‘Your <SOMETHING>’, ‘<TEXTDOMAIN>’ ); ?><span class=”required”>*</span>:</label> <input id=”<FIELD_ID>” name=”<FIELD_ID>” value=”” placeholder=”” /> </p> <?php } add_action( ‘comment_form_logged_in_after’, ‘add_my_custom_field_to_comment_form’ ); add_action( ‘comment_form_after_fields’, ‘add_my_custom_field_to_comment_form’ ); … Read more