Summery Summery
Attempts to fetch the embed HTML for a provided URL using oEmbed.
Syntax Syntax
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
Version | Description |
---|---|
2.9.0 | Introduced. |