Created
August 22, 2023 23:08
-
-
Save devuri/d69ee90ffd977451f3dfc4da2f6f4af0 to your computer and use it in GitHub Desktop.
Modify the YouTube embedded videos disclaimer text for easy-video-publisher.
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 | |
/** | |
* 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