wp_oembed_get

SummerySummery

Attempts to fetch the embed HTML for a provided URL using oEmbed.

Syntax

wp_oembed_get( string $url, array $args = '' )

ParametersParameters

$url

(string) (Required) The URL that should be embedded.

$args

(array) (Optional) Additional arguments and parameters for retrieving embed HTML.

Default value: ''

ReturnReturn

(string|false) The embed HTML on success, false on failure.

SourceSource

File: wp-includes/embed.php


			

ChangelogChangelog

Changelog
Version Description
2.9.0 Introduced.

See alsoSee also

Scroll to Top