Created
June 19, 2020 10:22
-
-
Save gdarko/86fe6f928c8f408259585fd9c9effd20 to your computer and use it in GitHub Desktop.
Hide embed privacy in WP Vimeo Videos
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 | |
/** | |
* 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'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you!