Skip to content

Instantly share code, notes, and snippets.

@gdarko
Last active March 5, 2021 13:11
Show Gist options
  • Save gdarko/2dfded1a548507d73611c26101220af5 to your computer and use it in GitHub Desktop.
Save gdarko/2dfded1a548507d73611c26101220af5 to your computer and use it in GitHub Desktop.
Modify the allowed Video extensions on WP Vimeo Videos. Add this code to your theme's functions.php.
<?php
/**
* Modify the allowed extensions on WP Vimeo Videos
* @return string[]
*/
function filter_dgv_allowed_extensions() {
return array( 'mp4', 'mov', 'flv' );
}
add_filter('dgv_allowed_extensions', 'filter_dgv_allowed_extensions');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment