Comments form custom fields order
Demo – Setup Here’s a demo how we could control the display of comment fields and their order: Let’s create a custom class: $mycf = new MyCommentFields; Then we define our extra fields: $myfields = []; $myfields[‘myaddress’] = sprintf( ‘<p class=”comment-form-myaddress”> <label for=”myaddress”>%s <span class=”required”>*</span></label> <input id=”myaddress” name=”myaddress” type=”text” size=”30″ tabindex=”5″ /> </p>’, esc_html__( ‘Address’, … Read more