[resolved] Can't add unfiltered_html to custom user role (4 posts)

  1. lilianev
    Posted 2 years ago #

    I’ve created a new user role in our WordPress theme and our users need to be able to embed YouTube Videos. I tried adding ‘unfiltered_html’ => true to our add_role array but it’s not working. I’ve done some googling and I’m thinking that doesn’t work because we’re working in a network (multisite) environment. Is that correct? Is there another way to give them this capability?

  2. They don't need that. I mean, yes, you could do it with a plugin, but you are aware that youtube videos auto embed right?

    Paste the URL to the video: http://codex.wordpress.org/Embeds

  3. lilianev
    Posted 2 years ago #

    omg. I had no clue. wow, i feel like an idiot.

    Thanks for the info!

  4. Don't feel like an idiot! You can't know what you don't know yet :) Now you do, and you can cheerfully protect your site from silly iframe injections ;)

Topic Closed

This topic has been closed to new replies.

About this Topic