Skip to content

Instantly share code, notes, and snippets.

@gdarko
Created March 23, 2020 23:05
Show Gist options
  • Save gdarko/77a1b69285b1a73b9db399a0dbfaac03 to your computer and use it in GitHub Desktop.
Save gdarko/77a1b69285b1a73b9db399a0dbfaac03 to your computer and use it in GitHub Desktop.
Change the view privacy for the new Vimeo uploads from WP Vimeo Videos PRO plugin
<?php
/**
* Change the default view privacy in WP Vimeo Videos PRO
* This only applies if you have Vimeo Plus, Vimeo PRO, Vimeo Business (or higher level) account.
* @url https://developer.vimeo.com/api/guides/videos/interact#set-vimeo-privacy
*/
function dgv_default_privacy_1821210($privacy) {
$privacy = 'unlisted';
return $privacy;
}
add_filter('dgv_default_privacy', 'dgv_default_privacy_1821210');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment