// Allow Iframes rendering function allow_iframes($allowedposttags) { $allowedposttags['iframe'] = array( 'src' => true, 'width' => true, 'height' => true, 'frameborder' => true, 'allowfullscreen' => true, 'sandbox' => true, 'security' => true, 'title' => true, 'class' => true, 'data-secret' => true, ); return $allowedposttags; } add_filter('wp_kses_allowed_html', 'allow_iframes');