Last active
March 5, 2021 13:11
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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