Skip to content

Instantly share code, notes, and snippets.

@infn8
Created February 11, 2016 17:24

Revisions

  1. infn8 created this gist Feb 11, 2016.
    8 changes: 8 additions & 0 deletions functions.php
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    <?php
    // Add this to your plugin file or to functions.php
    function my_add_oembed_providers() {
    wp_oembed_add_provider( '#http://(www\.)?ustream.tv/*#i', 'http://www.ustream.tv/oembed', true );
    }
    add_action( 'init', 'my_add_oembed_providers' );

    ?>