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!

    • enky

    • April 5, 2019 at 8:10 pm

    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)

You must be logged in to reply to this topic.

We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.