Фильтр
wpautop
заменяет двойной перенос строки на HTML конструкцию
<p>...</p>
, а одинарный на
<br>
По умолчанию функция применяется к следующим фильтрам:
add_filter( 'term_description', 'wpautop' );
add_filter( 'get_the_post_type_description', 'wpautop' );
add_filter( 'the_content', 'wpautop' );
add_filter( 'the_excerpt', 'wpautop' );
add_filter( 'comment_text', 'wpautop', 30 );
add_filter( 'widget_text_content', 'wpautop' );
add_filter( 'the_excerpt_embed', 'wpautop' );
Отключить фильтр можно так:
remove_filter( 'the_content', 'wpautop' );
remove_filter( 'the_excerpt', 'wpautop' );