Created
September 2, 2018 00:31
-
-
Save nandomoreirame/ed8f3ff20a986826b1622f3ab4ec4e39 to your computer and use it in GitHub Desktop.
WordPress remove root block tag
This file contains hidden or 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 | |
| function custom_tinymce_remove_root_block_tag( $init ) { | |
| $init['forced_root_block'] = false; | |
| return $init; | |
| } | |
| add_filter( 'tiny_mce_before_init', 'custom_tinymce_remove_root_block_tag' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment