Created
December 21, 2011 08:45
-
-
Save michael-simons/1505265 to your computer and use it in GitHub Desktop.
Enables automatic embedding of twitter updates through oembed
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 | |
/* | |
Plugin Name: Enable Twitter oEmbed | |
Description: Enables automatic embedding of twitter updates through oembed | |
Author: Michael Simons | |
Version: 1.0 | |
Author URI: http://michael-simons.eu | |
*/ | |
wp_oembed_add_provider('#https?://twitter.com/\#!/[a-z0-9_]{1,20}/status/\d+#i', 'https://api.twitter.com/1/statuses/oembed.json', true); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment