Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- Plugin Name: Speaker Deck Embed
- Description: Embed Speaker Deck slideshows
- Version: 1.1
- Author: Matt Wiebe
- Author URI: http://somadesign.ca/
- */
- add_action( 'init', 'sd_add_speakerdeck_oembed' );
- function sd_add_speakerdeck_oembed() {
- // Example URL: https://speakerdeck.com/simonwheatley/what-happened-at-the-wordpress-community-summit
- // Example oEmbed URL: https://speakerdeck.com/oembed.json?url=https%3A%2F%2Fspeakerdeck.com%2Fsimonwheatley%2Fwhat-happened-at-the-wordpress-community-summit
- wp_oembed_add_provider( '#https?://speakerdeck.com/.*#i', 'https://speakerdeck.com/oembed.json', true );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement