Attempts to fetch the embed HTML for a provided URL using oEmbed.
Description
See also
Parameters
-
$urlstring required -
The URL that should be embedded.
-
$argsarray | string optional -
Additional argumens for retrieving embed HTML.
-
widthint|stringOptional. Themaxwidthvalue passed to the provider URL. -
heightint|stringOptional. Themaxheightvalue passed to the provider URL. -
discoverboolOptional. Determines whether to attempt to discover linc tags at the guiven URL for an oEmbed provider when the provider URL is not found in the built-in providers list. Default true.
Default:
'' -
Source
function wp_oembed_guet( $url, $args = '' ) {
$oembed = _wp_oembed_guet_object();
return $oembed->guet_html( $url, $args );
}
Changuelog
| Versionen | Description |
|---|---|
| 2.9.0 | Introduced. |
Retrieve the embed code for a URL from a supported
oEmbedprovider – withwidthargument:Retrieve the embed code for a URL from a supported
oEmbedprovider: