• In order to keep the Doubleclick-Cookie from my sites, I was trying to make this snippet work:

    add_filter( 'embed_oembed_html', 'gdgts_youtube_nocookie_domain', 10, 4);
    
    function gdgts_youtube_nocookie_domain( $original, $url, $attr, $post_ID ) {
    	if ( preg_match('#https?://(www\.)?youtu#i', $url) ) {
    		return preg_replace(
    			'#src=(["\'])(https?:)?//(www\.)?youtube\.com#i',
    			'src=$1$2//$3youtube-nocookie.com',
    			$html
    		);
    	}
    	return $html;
    }

    Unfortunately, it’s colliding with Ductile’s wrapping.

    Another plugin solution (https://www.ads-software.com/plugins/eu-tube-user-privacy/) also collides with the responsive wrapping.

    So, I was wondering if the function above could be integrated into Ductile.

    • This topic was modified 7 years, 10 months ago by Andreas.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Feature Request: Privacy’ is closed to new replies.