General oEmbed Provider 1 oEmbed Provider 2 oEmbed Provider 3 oEmbed Provider 4 oEmbed Provider 5 Overview Use this tool to create custom code to register oEmbed providers with wp_oembed_add_provider() function. Usage Fill in the user-friendly form. Click the “Update Code” button. Copy the code to your project. Or save it as a snippet and share with the community. Examples If you are still learning how to use this tool, check out the following examples: YouTube Videos Instagram Images Kickstarter Projects ifttt.com Recipes Playbuzz Playfull Content Cloudup items GenerateWP snippets Function Name The function used in the code. Provider Format The URL structure that this oEmbed provider supports. Endpoint URL The base URL to the oEmbed provider. Format Type (is regex) True - Regex format False - wildcard format Whether the provider format parameter is a regex string or not. Provider Format The URL structure that this oEmbed provider supports. Endpoint URL The base URL to the oEmbed provider. Format Type (is regex) True - Regex format False - wildcard format Whether the provider format parameter is a regex string or not. Provider Format The URL structure that this oEmbed provider supports. Endpoint URL The base URL to the oEmbed provider. Format Type (is regex) True - Regex format False - wildcard format Whether the provider format parameter is a regex string or not. Provider Format The URL structure that this oEmbed provider supports. Endpoint URL The base URL to the oEmbed provider. Format Type (is regex) True - Regex format False - wildcard format Whether the provider format parameter is a regex string or not. Provider Format The URL structure that this oEmbed provider supports. Endpoint URL The base URL to the oEmbed provider. Format Type (is regex) True - Regex format False - wildcard format Whether the provider format parameter is a regex string or not. Update Code Save Snippet
// Register oEmbed providers function generatewp_oembed_provider() { wp_oembed_add_provider( '#https?://(www.)?generatewp.com/snippet/.*#i', 'http://api.generatewp.com/v1/oembed/', true ); } add_action( 'init', 'generatewp_oembed_provider' );