Title: Adding oEmbed provider to a multisite instance
Last modified: August 31, 2016

---

# Adding oEmbed provider to a multisite instance

 *  [carrieoke13](https://wordpress.org/support/users/carrieoke13/)
 * (@carrieoke13)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/adding-oembed-provider-to-a-multisite-instance/)
 * I am trying to add Kaltura as an oEmbed provider for all the sites in my Multisite
   instance.
 * I tried adding this code to the functions file of a theme:
 *     ```
       add_action( 'init', 'add_oembed_kaltura' );
       function add_oembed_kaltura() 
   
       {
       wp_oembed_add_provider( 'https://media.online.uga.edu/id/*', 'https://media.online.uga.edu/oembed', false);
       }
       ```
   
 * but that didn’t work. So, I created a plugin with just one file with the same
   code in it and installed the plugin and network activated it. (I deleted the 
   code from the functions file first). It still isn’t working, the oembed links
   are just displaying as text on pages. Is there an issue with the code I’m using?
   Thanks for any help!

Viewing 1 replies (of 1 total)

 *  [mpaskevi](https://wordpress.org/support/users/mpaskevi/)
 * (@mpaskevi)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/adding-oembed-provider-to-a-multisite-instance/#post-7019429)
 * I face the same challenge. This used to work I had a similar piece of code created
   as plugin for my wordpress network. Some functionality changed within Kaltura
   when we moved to KMS5 and this plugin stopped working.
 * Kaltura gave the following response when I inquired:
 * The use of an Oembed link is in fact, the privilege to create/produce an embed
   code on the fly, bases on specific parameters of the video. An embed code and
   Oembed URL are not acting in the same manner outside of MediaSpace – The 1st 
   actually contains the embed code while the 2nd is API based used to *produce*
   an embed code.
 * The request to allow anonymous users to only *watch* the video without allowing
   them to embed it onward is not possible. If an anonymous user can see the content
   with an Oembed url, he is actually creating an embed code on the fly and the 
   page in which he sees the content actually contains the embed code. The code 
   is open to be taken, embedded, and watched by anyone.
 * Therefore, for security reasons, it is not possible to allow one anonymous user(
   who was given the link to the blog) to view the content while preventing it from
   a different anonymous user (who was not given the link to the blog).
 * If you find a way around this issue I would love to hear about it.

Viewing 1 replies (of 1 total)

The topic ‘Adding oEmbed provider to a multisite instance’ is closed to new replies.

## Tags

 * [oEmbed](https://wordpress.org/support/topic-tag/oembed/)

 * In: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
 * 1 reply
 * 2 participants
 * Last reply from: [mpaskevi](https://wordpress.org/support/users/mpaskevi/)
 * Last activity: [10 years, 1 month ago](https://wordpress.org/support/topic/adding-oembed-provider-to-a-multisite-instance/#post-7019429)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
