• Resolved Megazip

    (@megazip)


    Hello,

    I mainly use YouTube videos on my site.
    I noticed the option YOUTUBE API, in which case do i have to activate this option ?

    If i need an API where do i have to add it?

    Thanks!

    • This topic was modified 4 years, 9 months ago by Megazip.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello @megazip

    I hope you are doing well!

    A Youtube API is coded within the plugin, but you can have your own Youtube API added.

    Simply add this code to functions.php file of your child theme. Make sure to replace enter_your_api_key_here with your own API key

    add_filter( 'blc_youtube_api_key', function( $api_key ) {
    	$api_key = 'enter_your_api_key_here';
    	return $api_key;
    } );

    Hope this will help!

    Kind regards,
    Nastia

    Thread Starter Megazip

    (@megazip)

    Thanks Nastia!

    Regards,
    Pieter

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to use Youtube API?’ is closed to new replies.