Support

Account

Home Forums ACF PRO Change oEmbed youtube URL

Solving

Change oEmbed youtube URL

  • Hello,

    With the new GDPR law you have to give users an option wich cookies they want to be placed or not.

    Youtube will place multiple marketing cookies when you embed a video. There is a way to avoid this. When you change the URL to “youtube-nocookie.com” it wont place a cookie.

    Is there a way to change the source “youtube.com” to “youtube-nocookie.com” with the advanced custom field oEmbed?

  • Hi @precies

    You can try this function to filter out the output: https://www.advancedcustomfields.com/resources/acf-render_field/

    This will allow you to replace the youtube.com string with the youtube-nocookie.com string. If you haven’t done that before, just look up “string replace php”

    Phil

  • Hello @nathanaelphilip

    I don’t really see how you can do it with the string replace php. Could you please help me on this matter?

    Thanks

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.