Created
March 16, 2016 10:37
-
-
Save websupporter/569d44c5e86eb335d223 to your computer and use it in GitHub Desktop.
Add Gfycat as oEmbed provider
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 | |
/** | |
* Add Gfycat as oEmbed provider | |
**/ | |
wp_oembed_add_provider( | |
'#http(s)?://(www\.)?gfycat\.com/.*#i', | |
'https://api.gfycat.com/v1/oembed?url=', | |
true | |
); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment