Support

Account

Home Forums ACF PRO Change oEmbed youtube URL Reply To: Change oEmbed youtube URL

  • Putting something like this in the template is the best I could come up with:

    		<?php 
    			$iframe = get_field('video');
    			$iframe = str_replace('youtube.com/embed/', 'youtube-nocookie.com/embed/', $iframe);
    		?>
    
    		<div class="minus6db-video"><?php echo $iframe ?></div>