wp_oembed_get

Advertisement

Summery Summery

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

Syntax Syntax

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

Parameters Parameters

$url

(Required) The URL that should be embedded.

$args

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

Default value: ''

Return Return

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

Source Source

File: wp-includes/embed.php

	$oembed = _wp_oembed_get_object();
	return $oembed->get_html( $url, $args );
}

Advertisement

Changelog Changelog

Changelog
Version Description
2.9.0 Introduced.

See also See also

Advertisement

Leave a Reply