Hello,
I’m currently working on gdpr on my website. I’d like to know if there is an easy way to replace all “oembed” links. I tried manually to replace one link with “-nocookie” but it’s not displaying the video it’s only displaying the link.
Could you please help me on this matter?
Many thanks!
Hey, did you find a solution for this ?
<?php echo str_replace('https://www.youtube.com/embed', 'https://www.youtube-nocookie.com/embed', get_field('my_video')); ?>