Skip to content

Instantly share code, notes, and snippets.

@mostafasoufi mostafasoufi/functions.php
Last active Sep 25, 2016

Embed
What would you like to do?
Comment fields position order handler
<?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
You can’t perform that action at this time.