Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Move comment field to bottom
- function wpb_move_comment_field_to_bottom( $fields = array(
- 'author' =>
- '<p class="comment-form-author"><label for="author">' . __( 'Name', 'domainreference' ) . '</label> ' .
- ( $req ? '<span class="required">*</span>' : '' ) .
- '<input id="author" name="author" type="text" value="' . esc_attr( $commenter['comment_author'] ) .
- '" size="30"' . $aria_req . ' /></p>',
- 'email' =>
- '<p class="comment-form-email"><label for="email">' . __( 'Email', 'domainreference' ) . '</label> ' .
- ( $req ? '<span class="required">*</span>' : '' ) .
- '<input id="email" name="email" type="text" value="' . esc_attr( $commenter['comment_author_email'] ) .
- '" size="30"' . $aria_req . ' /></p>'
- );
- ) {
- );
- $comment_field = $fields['comment'];
- unset( $fields['comment'] );
- $fields['comment'] = $comment_field;
- return $fields;
- }
- add_filter( 'comment_form_fields', 'wpb_move_comment_field_to_bottom' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement