WordPress.org

Forums

Multisite Admin can not embed (2 posts)

  1. KrackenIT
    Member
    Posted 7 months ago #

    While working with a client I found out that the admin can not embed and code into a page/post, only the Network (super admin) can. If the admin tries the code gets erased upon hitting update.

    Is this by design or is it a bug?

  2. Mike Price
    WP Engine Tech Support
    Posted 7 months ago #

    Hey there

    This is actually by design to prevent malicious code from being entered into posts and pages by "Admins" on the Network. If they are trying to embed all from one central site, then you would need to create an embed handler to allow Admins to embed from that site. See more info here:

    https://codex.wordpress.org/Function_Reference/wp_embed_register_handler

    http://alisothegeek.com/2013/01/adding-oembed-handlers-to-wordpress/

Reply

You must log in to post.

About this Topic

Tags