Move Comment Text Field to Bottom in WordPress
Comment form Textarea field is moved to the top whereas the Name, Email, and Website fields are moved to the bottom. To move the comment form Textarea field to the bottom add the following code in functions.php
/**
* Change the number of related products output
*/
add_filter( 'comment_form_fields', 'codesanjal_move_comment_field', 10, 3 );
function codesanjal_move_comment_field( $fields) {
$comment_field = $fields['comment'];
unset( $fields['comment'] );
$fields['comment'] = $comment_field;
return $fields;
}
Does this snippet (still) work?
Please let us know in the comments if everything worked as expected. We would be happy to revise the snippet if you report. We have tested this code in WordPress 5.6 Version, and WordPress-friendly hosting on PHP 7.4.