Uses
Uses | Description |
---|---|
wp-includes/embed.php: _wp_oembed_get_object() | Returns the initialized WP_oEmbed object. |
Attempts to fetch the embed HTML for a provided URL using oEmbed.
(string) (Required) The URL that should be embedded.
(array) (Optional) Additional arguments and parameters for retrieving embed HTML.
Default value: ''
(string|false) The embed HTML on success, false on failure.
File: wp-includes/embed.php
function wp_oembed_get( $url, $args = '' ) { $oembed = _wp_oembed_get_object(); return $oembed->get_html( $url, $args ); }
Version | Description |
---|---|
2.9.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_oembed_get