Created
October 15, 2018 19:34
-
-
Save temsool/4ad81cf0ee44e267afaccf3e01a6001e to your computer and use it in GitHub Desktop.
Enable wpautop wordpress elementor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action( 'elementor/widget/render_content', function( $content, $widget ) { | |
if ( 'text-editor' === $widget->get_name() ) { | |
$content =wpautop($content); | |
} | |
return $content; | |
}, 10, 2 ); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment