Skip to content

Instantly share code, notes, and snippets.

@gdarko
Created June 19, 2020 10:22
Show Gist options
  • Save gdarko/86fe6f928c8f408259585fd9c9effd20 to your computer and use it in GitHub Desktop.
Save gdarko/86fe6f928c8f408259585fd9c9effd20 to your computer and use it in GitHub Desktop.
Hide embed privacy in WP Vimeo Videos
<?php
/**
* Hide embed privacy in WP Vimeo Videos
* @return void
*/
function wvv_edit_hide_embed_privacy() {
if(isset($_GET['page']) && $_GET['page'] === 'dgv-library') {
echo '<style>#dgv-video-save-embed-privacy {display:none !important;}</style>';
}
}
add_action('admin_head', 'wvv_edit_hide_embed_privacy');
@pkimbrell38
Copy link

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment