Skip to content

Instantly share code, notes, and snippets.

@soulreverie
Last active January 7, 2021 16:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save soulreverie/b05c8879fedb2402acae201d13d26f9d to your computer and use it in GitHub Desktop.
Save soulreverie/b05c8879fedb2402acae201d13d26f9d to your computer and use it in GitHub Desktop.
Wordrpess: Remove dnt from embedded vimeo video links
/**
* 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