Created
January 7, 2013 15:24
-
-
Save mustardBees/4475788 to your computer and use it in GitHub Desktop.
Add Mixcloud oEmbed support to WordPress
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
/** | |
* Register additional oEmbed providers | |
* | |
* @author Syed Balkhi | |
* @link http://goo.gl/tccJh | |
*/ | |
function iweb_register_additional_oembed_providers() { | |
wp_oembed_add_provider( 'http://www.mixcloud.com/*', 'http://www.mixcloud.com/oembed' ); | |
} | |
add_action( 'init', 'iweb_register_additional_oembed_providers' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment