Embedded Video unavailable for WP MU administrators

As a WPMU Super Administrator, we have access to the Embedded Video element in the list. See picture below:

As a WPMU Administrator (one site), we do not have access to the Embedded Video element in the list. See picture below:

How can we make it so the administrator has access to it too?
What defines if the Embedded Video shows up or not?

Thank you! :slight_smile:

Hello There,

Thanks for writing in! By default administrator is allowed to access Cornerstone and all its elements. If you want other roles to have access, please go to X > Cornerstone > Content Roles to allow content editing for roles other than Administrator.

Hope this helps. Please let us know how it goes.

Hello Rue,
That makes sense, but the user has access to CornerStone, just not the Embedded Video element.
As you can see below, everyone is an Administrator. Yet, only the first user (Super Administrator) can see it.

Hello There,

Thanks for updating in! To assist you better with this issue, would you mind providing us the url of your site with login credentials so we can take a closer look? This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.

To do this, you can create a secure note with the following info:
– Link to your site
– WordPress Admin username / password
​
Thank you.

Sure thing, I attached the secure information to my previous post. Thank you for your precious time.

Hello There,

Thanks for providing the information. I have logged in for both the users given and I can confirm that the embedded video element is not showing for low level user access. This is because Embedded video is using unfiltered html and only the super admins can access or make use of the unflitered html. This is to avoid any invalid inputs or even prevents hijacking from any malicious scripts that might try to gain entry to your WP installation. For related thread, you can check this out: https://wordpress.stackexchange.com/questions/19573/allow-unfiltered-html-in-titles-for-low-level-users

Hope this explains it.

Hello Rue,
This makes a lot of sense. Is there a right I can attribute to site Admins so they can see it? Using functions.php perhaps?

Hi there,

I’m not 100% sure, but if you can provide your FTP login credentials then maybe I can try that out. I don’t have any installation that has a similar issue so I can’t test and check it on my end.

Thanks!

I have added a FTP access in the last post’s Secure Note.

Hi There,

You may add this code on your pro child theme functions.php file:

/**
 * Enable unfiltered_html capability for Normal Administrator.
 *
 * @param  array  $caps    The user's capabilities.
 * @param  string $cap     Capability name.
 * @param  int    $user_id The user ID.
 * @return array  $caps    The user's capabilities, with 'unfiltered_html' potentially added.
 */
function km_add_unfiltered_html_capability_to_normaladmin( $caps, $cap, $user_id ) {
	if ( 'unfiltered_html' === $cap && user_can( $user_id, 'administrator' ) ) {
		$caps = array( 'unfiltered_html' );
	}
	return $caps;
}
add_filter( 'map_meta_cap', 'km_add_unfiltered_html_capability_to_normaladmin', 1, 3 );

I have tested it on your site and it works. It is a variation of the code presented here. I just edited the role for it to work on normal admin. Feel free to add the code again if you want. Please just note as stated on the link, it is not available by default due to potential security vulnerabilities.

Hope this helps.

This worked, thank you very much. While it is a security vulnerability, the administrators are the websites’ owners, so as long as we keep the administrators clean it should be alright. :slight_smile:

Glad to hear it.

Cheers!