Last active
September 25, 2016 07:43
-
-
Save mostafasoufi/7a467f24d82da8502a61327a6d9eca0a to your computer and use it in GitHub Desktop.
Comment fields position order handler
This file contains 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
<?php | |
/** | |
* Comment fields position order handler | |
* @param array $form Form fields | |
* @author Mostafa Soufi <mostafa.soufi@hotmail.com> | |
* @link (http://mostafa-soufi.ir) | |
*/ | |
function comment_field_position_order_handler($form) { | |
$final_form['author'] = $form['author']; | |
$final_form['email'] = $form['email']; | |
$final_form['url'] = $form['url']; | |
$final_form['comment'] = $form['comment']; | |
return $final_form; | |
} | |
add_filter('comment_form_fields', 'comment_field_position_order_handler'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment