Attempts to fetch the embed HTML for a provided URL using oEmbed.
Parameters
$urlstring
The URL that should be embedded.
$argsarray|stringoptional
Additional arguments for retrieving embed HTML. Default empty.Default: ''
$widthint|string
Optional. The maxwidth value passed to the provider URL.
$heightint|string
Optional. The maxheight value passed to the provider URL.
$discoverbooldefault: true
Optional. Determines whether to attempt to discover link tags at the given URL for an oEmbed provider when the provider URL is not found in the built-in providers list.
Signature, return type and hooks compared across 5 parsed releases.
About this page
Parsed data
Generated from the wordpress-develop 6.8.8 tag, from src/wp-includes/embed.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.