oEmbed is a powerful feature that removes the need for HTML5 iframe tags. This feature will create an embedded representation of a Video Platform URL for media streaming.
Integrating oEmbed into an Organization’s WordPress Page
In order to proceed, access to the Theme Editor for Wordpress is essential.
- Login into your WordPress account, then choose the Theme Editor.
- Open the functions.php file from the Theme Editor, then aone of the following lines based on how your organization is set up and click Save.
Copy
<?php wp_oembed_add_provider( 'https://<YOUR_ORGANIZATION>.yuja.com/V/*', 'https://<YOUR_ORGANIZATION>.yuja.com/services/oembed', false ); ?>
Or:
Copy<?php wp_oembed_add_provider( 'https://<CUSTOM_YUJA_ORGANIZATION_URL>.com/V/*', 'https://<CUSTOM_YUJA_ORGANIZATION_URL>.com/services/oembed', false ); ?>
Or (Use this option if you wish to use another organization’s direct Video Platform URLs within your district or system):
Copy<?php wp_oembed_add_provider( 'https://*/V/*', 'https://<YUJA_ORGANIZATION_URL>.com/services/oembed', false ); ?>
- Test the integration of oEmbed by posting direct Video Platform media links to any page of your organization’s website. If oEmbed is installed correctly, the links will show up as embedded videos once the post or page is published.