I have a WordPress multisite set up and am trying to save page content with data-attributes on some html tags. Super Users are able to save with no issue, however when Administrators or lower roles save, it strips out the data-attributes that are in the tag. Is there any way to allow other user roles to save data-attributes in the html?
Just to be clear, it's not the html tags themselves that get stripped, but the data attributes, like so:
<p data-item="1">String</p>
The above gets saved as:
<p>String</p>
This isn't a tinymce issue either, I scan switch back and forth between the WYSIWYG and the source view and it stays, it's only when I save the page that it gets stripped out, and only for users that are lower than Super User in a multisite.
Any help is appreciated, thanks!