Core Function
View Source on Trac ↗ wp_oembed_add_provider()
wp_oembed_add_provider( mixed $format, mixed $provider, mixed $regex = false ) Adds a URL format and oEmbed provider URL pair.
Parameters 2 required
| Name / Type | Description |
|---|---|
| string | $format The format of URL that this provider can handle. You can use asterisks as wildcards. Required |
| $provider string | The URL to the oEmbed provider. Required |
| $regex bool | Optional. Whether the `$format` parameter is in a RegEx format. Default false. |
Return Value
(void)
No return value description available.
Function Information
Since Version
2.9.0
Source File
wp-includes/embed.php
Advertisement