Support

Account

Home Forums ACF PRO oEmbed params Reply To: oEmbed params

  • Hi @bobz

    You could use a preg_replace to find the src=”” part of the embed, and then add in the extra ?api=1 like so:

    
    $value = get_field('video');
    $value = preg_replace('/src="(.+?)"/', 'src="$1?api=1"', $value);
    

    Thanks
    E