Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Remove the wpautop filter
* Remove the wpautop filter from the_content
remove_filter( 'the_content', 'wpautop' );
add_filter( 'the_content', function ($content) {
if (has_blocks()) {
return $content;
return wpautop($content);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment