//Add extra field to comment form function add_bcw_fields(){ echo ''; } add_action( 'comment_form_logged_in_after', 'add_bcw_fields' ); //Save the extra comment field value function bcw_handle_comment($id) { if (array_key_exists('test', $_POST)) update_comment_meta( $id, 'bcw_test', $_POST['test']); } add_action('wp_insert_comment', 'bcw_handle_comment'); //Override default theme function to display a comment function seosolid_comment($comment, $args, $depth) { $GLOBALS['comment'] = $comment; extract($args, EXTR_SKIP); if ( 'div' == $args['style'] ) { $tag = 'div'; $add_below = 'comment'; } else { $tag = 'li'; $add_below = 'div-comment'; } ?> < id="comment-">
$add_below, 'depth' => $depth, 'max_depth' => $args['max_depth']))) ?>