Tribe__Events__Editor__Template__Overwrite::wpautop( string $content )
If function gutengerg_wpautop() does not exist, use this to disable wpautop.
Contents
Parameters
- $content
-
(string) (Required) Post content.
Return
(string) Paragraph-converted text if non-block content.
Source
File: src/Tribe/Editor/Template/Overwrite.php
public function wpautop( $content ) {
// don't bother if wpautop isn't applied
if ( ! has_filter( 'the_content', 'wpautop' ) ) {
return $content;
}
if ( has_blocks( $content ) ) {
return $content;
}
return wpautop( $content );
}