Function: wp_oembed_add_provider

wp_oembed_add_provider( string $format, string $provider, boolean $regex )

Adds a URL format and oEmbed provider URL pair.

Parameters

Name Type(s) Default Value Description
$format string

The format of URL that this provider can handle. You can use asterisks as wildcards.

$provider string

The URL to the oEmbed provider.

$regex boolean false

Optional. Whether the $format parameter is in a RegEx format. Default false.

WordPress Developer Newsletter

Stay on top of the latest WordPress API changes, developer tool updates, security alerts and more.