WP multisite installation ver 5.2.11
Plugin Advanced Access Manager 6.5.4 licensed
This plugin creates and manages different level of users with different privileges.
Already asked to the seller’s customer service without replies
We frequently inserted an embedded code as this:
We created a lower level of access for some specific editors.
For them the code embedded looses the script: after saving the page the code remains only made by the div
Why does it loose the script?
What could we do to avoid this issue?
Below are the methods you can try. The first solution is probably the best. Try others if the first one doesn’t work. Senior developers aren’t just copying/pasting – they read the methods carefully & apply them wisely to each case.
WordPress Multisite disallows the
unfiltered_html capability for non-super-admin (ie, any users who are not capable of performing network administration). Anyone without the
unfiltered_html capability will not be able to save post content with disallowed HTML tags, including
A quick search shows that there have been attempts at modifying this behaviour, but they may have been invalidated by subsequent updates to WordPress core.
See this answer for a possible solution (though it may not work anymore.)
All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0