Support

Account

Home Forums Front-end Issues ACF & youtube-nocookie

Solving

ACF & youtube-nocookie

  • 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')); ?>

Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘ACF & youtube-nocookie’ is closed to new replies.