Created
March 13, 2015 08:40
-
-
Save projoomexperts/b12cf125dc594d048a33 to your computer and use it in GitHub Desktop.
Stop wordpress editor from messing up my html
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
function override_mce_options($initArray) { | |
$opts = '*[*]'; | |
$initArray['valid_elements'] = $opts; | |
$initArray['extended_valid_elements'] = $opts; | |
return $initArray; | |
} | |
add_filter('tiny_mce_before_init', 'override_mce_options'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment