How vendors can enter iframe in the product description
The vendor can not post iframe in product description simply because they are not considered admin 100%, despite having all the capabilities related to product management.
If you want to give this opportunity to the vendors just then open the functions.php file of the theme and add this code:
if ( function_exists( 'YITH_Vendors' ) ) {
add_filter( 'wp_kses_allowed_html', 'yith_wp_kses_allowed_html', 10, 2 );
function yith_wp_kses_allowed_html( $allowedtags, $context ) {
if ( 'post' == $context ) {
$vendor = yith_get_vendor( 'current', 'user' );
if ( $vendor->is_valid() && $vendor->has_limited_access() ) {
$allowedtags['iframe'] = array(
'align' => true,
'frameborder' => true,
'height' => true,
'longdesc' => true,
'marginheight' => true,
'marginwidth' => true,
'name' => true,
'sandbox' => true,
'scrolling' => true,
'scrdoc' => true,
'width' => true,
'src' => true,
'style' => true,
'id' => true,
'class' => true
);
}
}
return $allowedtags;
}
}