Embedded Video Not Displaying in Audio/Video Fields

Some file extensions are not rendered by default in WP when using the Audio/Video input. Here is a preview of how it should look - demo.

If you encounter such situations, you need to use the following code snippet either by using the Code Snippets plugin or by pasting it into the functions.php file of your active theme:

add_filter( 'wp_video_extensions', 
    function( $exts ) {
        $exts[] = 'mov';
        return $exts;
    }
);

📝 Note: In the above case, we used it to embed mov files. Feel free to replace the extension if needed.

⏪ Before

⏩ After

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us