Skip to content

Instantly share code, notes, and snippets.

@devuri
Created August 22, 2023 23:08
Show Gist options
  • Save devuri/d69ee90ffd977451f3dfc4da2f6f4af0 to your computer and use it in GitHub Desktop.
Save devuri/d69ee90ffd977451f3dfc4da2f6f4af0 to your computer and use it in GitHub Desktop.
Modify the YouTube embedded videos disclaimer text for easy-video-publisher.
<?php
/**
* Modify the YouTube embedded videos disclaimer text. https://github.com/devuri/easy-video-publisher
*
* @param string $disclaimer The original disclaimer text.
* @return string Modified disclaimer text.
*/
function custom_disclaimer_modifier($disclaimer) {
// Modify the disclaimer text as needed
$modified_disclaimer = str_replace(
'YouTube\'s terms of service and privacy policy.',
'our custom terms and conditions.',
$disclaimer
);
return $modified_disclaimer;
}
add_filter('evp_embed_disclaimer_text', 'custom_disclaimer_modifier');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment