我正在用 wp_editor 制作表格。因此,我认为填写表格时需要 Wp_editor。但不幸的是,Wp_editor 为自己添加了一个段落<p>。那么如何禁用它呢?我尝试添加
$settings = array(
'wpautop' => false,
);
但什么都没有改变。我也在 default-filters.php 中评论了这一行
add_filter( 'the_content', 'wpautop' );
但是什么都没有再次改变。
问候,