wp_oembed_add_provider

SummerySummery

Adds a URL format and oEmbed provider URL pair.

Syntax

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

ParametersParameters

$format

(string) (Required) The format of URL that this provider can handle. You can use asterisks as wildcards.

$provider

(string) (Required) The URL to the oEmbed provider.

$regex

(boolean) (Optional) Whether the $format parameter is in a RegEx format.

Default value: false

SourceSource

File: wp-includes/embed.php


			

ChangelogChangelog

Changelog
Version Description
2.9.0 Introduced.

See alsoSee also

Scroll to Top