WPDev.one
Core Function
View Source on Trac ↗

wp_oembed_get()

wp_oembed_get( mixed $url, mixed $args = '' )

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

Parameters 2 required

Name / Type Description
$url
string

The URL that should be embedded.

Required
mixed

(array | string) $args { Optional. Additional arguments for retrieving embed HTML. Default empty.

Required

Return Value

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

Function Information

Since Version
2.9.0
Source File
wp-includes/embed.php
Advertisement