【发布时间】:2014-06-25 20:09:47
【问题描述】:
我在 wordpress 评论表单中为用户年龄添加了一个额外的字段。 我以这种方式添加了该字段:
add_filter('comment_form_default_fields','add_comment_fields');
function add_comment_fields($fields) {
$fields['location'] = '<p class="comment-form-location"><label for="location">' . __( Location ) . '</label>' .
'<input id="location" name="location" type="text" size="30" /></p>';
return $fields;
}
我还使用“comment_post”操作将元值保存在评论元表中。 现在我必须在管理员评论部分显示这个评论元值。我该怎么做?
【问题讨论】: