wpautop()

0.000803 сек
Медленно

Replaces the double line break with the HTML construct <p>...</p>, and the single line break with <br>.

WP uses this function to filter text in the_content() and the_excerpt().

By default in WP it applies to the following filters:

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' );
Функции

Подпишитесь на новости

Никакого спама, только полезные материалы и новости.