Instructors Not Able to Embed Unfiltered HTML in Multisite

The issue is here that in Multisite, instructors not able to embed video links, embed images.

This is because in multisite we are adding capabilities for instructors, so for embedding purpose, we have to assign these capabilities for this user role.

The issue is only in Multisite

 

Paste this Code in WPLMS Customizer Plugin

/**
* Enable unfiltered_html capability for Instructors.

*/
function km_add_unfiltered_html_capability_to_instructors( $caps, $cap, $user_id ) {

if ( ‘unfiltered_html’ === $cap && user_can( $user_id, ‘instructor’ ) ) {

$caps = array( ‘unfiltered_html’ );

}

return $caps;
}
add_filter( ‘map_meta_cap’, ‘km_add_unfiltered_html_capability_to_instructors’, 1, 3 );

 

Another option is to use this plugin: https://wordpress.org/plugins/unfiltered-mu/

Leave a Reply

Your email address will not be published. Required fields are marked *