Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Add Gfycat as oEmbed provider
<?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