我受到了这个问题的启发;答:Add a Custom Field in Comment Box next to the Text area 但我必须在textarea之后但在Send按钮之前插入自定义字段。
我没有找到合适的自定义操作,我想它根本不存在。
comment\\u form\\u after\\u字段将我的输出置于文本区域之前
comment\\u form\\u after将我的输出置于发送按钮之后
我错了吗?
add_action( \'comment_form_after\', \'test\');
function test(){
echo "TEST";
}
add_action( \'comment_form_after_fields\', \'test\');
function test(){
echo "TEST";
}