Oembed field - Youtube No Cookie

Support General Oembed field - Youtube No Cookie

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #45470
    AnnemijnAnnemijn
    Participant

    Hi,

    Is it possible to make a change to the oEmbed for it to work with Youtube No Cookie embed based on the url:
    https://www.youtube-nocookie.com/embed/sRrqF8eXs38

    This way no cookies will be placed which helps with both GDPR and Third Party Cookies. Unfortunually the oEmbed field does not recognize this url, while this is actually what is the url when you get a Privacy friendly embed script from Youtube itself.

    #45473
    PeterPeter
    Moderator

    Hello,

    Currently, it isn't possible. This is a WordPress core issue, you can take a look at this link https://core.trac.wordpress.org/ticket/44610

    The oEmbed field of Meta Box uses the WordPress function wp_oembed_get() to check and save the URL that is in the list of provider URLs and the nocookie Youtube URL isn't in the list. Check the file wp-includes/class-wp-oembed.php line 53.

    When the WordPress core issue is fixed, you can use the nocookie Youtube URL on your site.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.