Created
August 4, 2017 07:32
-
-
Save developer-anuragsingh/e518dbe3962a21314a34507a0c8a907e to your computer and use it in GitHub Desktop.
Move comment box in bottom of the form
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Move comment box in bottom of the form | |
| function wpb_move_comment_field_to_bottom( $fields ) { | |
| $comment_field = $fields['comment']; | |
| unset( $fields['comment'] ); | |
| $fields['comment'] = $comment_field; | |
| return $fields; | |
| } | |
| add_filter( 'comment_form_fields', 'wpb_move_comment_field_to_bottom' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment