Stop wordpress removing html

 In Wordpress Admin

Stop wordpress removing html . Add the bellow code on your functions.php

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');
Recommended Posts

Leave a Comment

Start typing and press Enter to search