Welcome to the Hero's lounge - where gifts are shared and wisdom is nurtured! Share your videos & websites here
on a wp template you can do this:
$allowed_tags = wp_kses_allowed_html( 'post' );
var_dump( $allowed_tags );
and it will output the list of allowed html tags; iframe is not inlcuded there so i need to add it
function vipx_allow_contenteditable_on_divs() {
global $allowedposttags;
$tags = array( 'iframe', 'embed', 'object' );
$new_attributes = array( 'src' => array(), 'height' => array() );
foreach ( $tags as $tag ) {
if ( isset( $allowedposttags[ $tag ] ) && is_array( $allowedposttags[ $tag ] ) ) {
$allowedposttags[ $tag ] = array_merge( $allowedposttags[ $tag ], $new_attributes );
}
}
}
add_action( 'init', 'vipx_allow_contenteditable_on_divs' );