Title: iframe code being stripped
Last modified: August 19, 2016

---

# iframe code being stripped

 *  [macaulus](https://wordpress.org/support/users/macaulus/)
 * (@macaulus)
 * [15 years ago](https://wordpress.org/support/topic/iframe-code-being-stripped/)
 * Hi
    ive searched around for an answer to this, but doesnt seem easy, i have a
   multisite wordpress install working perfectly for my admin user which controls
   everything including the network.
 * I started a new site recently and added it to the network and created an admin
   user who will be adding posts to the new site, this user only has access to this
   new site as an administrator.
 * When logged into my admin user (network user – full admin) when embedding an 
   iframe to call a youtube link in a post the code stays put in the post and doesnt
   get stripped, when i log in as the new admin user of just this new site, the 
   iframe code gets stripped out of the post, i have tried upgrading/downgrading
   this user to every level, author, editor and so on with the same result.
 * I would rather not use a plugin to accomplish a simple task like this, any ideas
   out there on why this new users code is being stripped, but my user has no problems,
   there doesnt seem to be any wordpress settings allowing or disallowing this rule
   for code stripping.
 * Any help would be greatly appreciated

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [15 years ago](https://wordpress.org/support/topic/iframe-code-being-stripped/#post-2061662)
 * Yeah, non super-admins can’t use iframe and other restricted HTML. It’s a security
   feature, and no, you really don’t wanna change it.
 * > when embedding an iframe to call a youtube link
 * You know, for THAT you don’t need an iFrame at all. Just paste in the URL of 
   the video. See [http://codex.wordpress.org/Embeds](http://codex.wordpress.org/Embeds)
 *  Thread Starter [macaulus](https://wordpress.org/support/users/macaulus/)
 * (@macaulus)
 * [15 years ago](https://wordpress.org/support/topic/iframe-code-being-stripped/#post-2061673)
 * seems that works, and i can use the embed tag to change the width.
 * This is a private site however, user registration is turned off, only employees
   will ever be able to update content, is there a different reason
 * > It’s a security feature, and no, you really don’t wanna change it.
 *  around it actually being a security hole, or is it assumed that all wordpress
   sites are open to the general public ??
 * seems that if i control the user access and they are trusted employees, this 
   would never be a problem, maybe a thread for another topic though, thankyou for
   you speedy reply, i will use the embed code which seems to work for the most 
   part
 *  [Tim Moore](https://wordpress.org/support/users/tmoorewp/)
 * (@tmoorewp)
 * [15 years ago](https://wordpress.org/support/topic/iframe-code-being-stripped/#post-2061758)
 * There are plugins out there that will relax the security feature. However, Ipstenu
   is right; even with private registration you don’t really want to do it. Even
   a select set of users will use bad passwords, which could lead towards easier
   break-ins on your website.
 * The way WordPress MultiSite is designed is under the assumption people are going
   to be running their own version of WordPress.com, which has public registration
   of accounts and blogs. In that use case, you don’t want everyone to be able to
   do everything.
 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [15 years ago](https://wordpress.org/support/topic/iframe-code-being-stripped/#post-2061773)
 * It’s not assumed that all WP sites are open registration, it’s assumed that all
   WP sites where the NON Super Admin owns sites involve users who are NOT the Super
   Admin.
 * If YOU blow up your own site, you kinda know what you did. If your mom does, 
   good like getting an answer out of what SHE did.
 *  [Andrea Rennick](https://wordpress.org/support/users/andrea_r/)
 * (@andrea_r)
 * [15 years ago](https://wordpress.org/support/topic/iframe-code-being-stripped/#post-2061790)
 * One of the core devs mantras is “never trust the user”. they will do stupid things.
   Yes, they will. 🙂
 *  [tomachi](https://wordpress.org/support/users/tomachi/)
 * (@tomachi)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/iframe-code-being-stripped/#post-2062082)
 * This is insane wordpress is deleting the iframes on my blog how on earth do I
   stop it from doing this?
 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [14 years, 1 month ago](https://wordpress.org/support/topic/iframe-code-being-stripped/#post-2062083)
 * There’a a plugin called Unfiltered MU.
 * _**For the love of all that’s holy, don’t use it on an un-monitored site where
   anyone in the universe can log in and make a site.**_
 * Comprede?

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘iframe code being stripped’ is closed to new replies.

 * In: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
 * 7 replies
 * 5 participants
 * Last reply from: [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * Last activity: [14 years, 1 month ago](https://wordpress.org/support/topic/iframe-code-being-stripped/#post-2062083)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
