Created
March 23, 2020 23:05
-
-
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
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 | |
/** | |
* 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