Created
October 26, 2012 21:25
-
-
Save Viper007Bond/3961652 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
wp_oembed_add_provider( 'http://instagram.com/p/*', 'http://api.instagram.com/oembed' ); | |
add_shortcode( 'instagram', 'shortcode_instagram' ); | |
function shortcode_instagram( $atts ) { | |
global $wp_embed; | |
return $wp_embed->shortcode( $atts, $atts['url'] ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment