Php 如何保存wpautop<;br>;在wordpress中发表评论?
我想删除wordpress中我的评论中的自动Php 如何保存wpautop<;br>;在wordpress中发表评论?,php,wordpress,Php,Wordpress,我想删除wordpress中我的评论中的自动和 我可以用 remove_filter( 'comment_text', 'wpautop', 30 ); 但它也会删除:( 保持不被删除的正确方法是什么 谢谢你的帮助。你可以用PHP代替WordPress'wpautop remove_filter( 'comment_text', 'wpautop', 30 ); add_filter( 'comment_text', 'nl2br', 30 );
和
我可以用
remove_filter( 'comment_text', 'wpautop', 30 );
但它也会删除
:(
保持
不被删除的正确方法是什么
谢谢你的帮助。你可以用PHP代替WordPress'wpautop
remove_filter( 'comment_text', 'wpautop', 30 );
add_filter( 'comment_text', 'nl2br', 30 );