true, 'width' => true, 'height' => true, 'title' => true, 'class' => true, 'style' => true, 'frameborder' => true, 'allow' => true, 'allowfullscreen' => true, 'webkitallowfullscreen' => true, 'mozallowfullscreen' => true, 'referrerpolicy' => true, 'loading' => true, 'sandbox' => true, ]; // TinyMCE uses child sources for direct video URLs and alternative formats. $allowed_html['source'] = [ 'src' => true, 'type' => true, 'media' => true, ]; // Native video/audio tags, playback attributes and caption tracks use // the standard post allowlist above. return wp_kses( $html, $allowed_html ); } }