user editor in multisite: iframe embed code disappears after saving


I would like my editors in my Multisite to be able to use iframe embed codes like below so they can put an Issuu publication in the website.

Everything goes well when your an super administrator but for editors the code dissappears when they hit 'Save'.

What can I do?

<iframe allowfullscreen allow="fullscreen" style="border:none;width:100%;height:450px;" src="//"></iframe>

Thanks in advance,


  • Ash
    • WordPress Hacker

    Hello Ariane

    Please try the following code:

    function allow_post_tags( $allowedposttags ){
    $allowedposttags['iframe'] = array(
    'src' => true,
    'width' => true,
    'height' => true,
    'class' => true,
    'frameborder' => true,
    'webkitAllowFullScreen' => true,
    'mozallowfullscreen' => true,
    'allowFullScreen' => true
    return $allowedposttags;
    add_filter('wp_kses_allowed_html','allow_post_tags', 1);

    You can use this code in your child theme’s functions.php if the theme is not changed. Otherwise mu-plugin is the best option. To create a mu-plugin, go to wp-content/mu-plugins folder. If there is no mu-plugins folder then, create one. Now, inside the mu-plugins folder create file with name anything.php (make sure file extension is .php). Now start with a <?php tag and then put the above code.

    Hope it helps! Please feel free to ask more questions if you have any.

    Have a nice day!



  • Ariane
    • Design Lord, Child of Thor

    Hi Ash,

    Thanks a lot, it works!

    I used the mu-plugin option because then it will work at all sites of the multisite. Also I added

    ‘style’ => true,

    and now iframe embeds work well!

    Thanks again!

    Cheers, Ariane

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.