Last active
January 7, 2021 16:57
-
-
Save soulreverie/b05c8879fedb2402acae201d13d26f9d to your computer and use it in GitHub Desktop.
Wordrpess: Remove dnt from embedded vimeo video links
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
/** | |
* Wordrpess: Remove dnt from embedded vimeo video links | |
*/ | |
function tdp_remove_embed_url_dnt($provider, $url, $args){ | |
return add_query_arg( array('dnt' => false), $provider ); | |
} | |
add_filter('oembed_fetch_url', 'tdp_remove_embed_url_dnt', 10, 3); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment