Uma área de pesquisa sobre o WordPress para devs e autores do tema



wp_oembed_get ›

Desde2.9.0
Obsoleton/a
wp_oembed_get ( $url, $args = '' )
Parâmetros: (2)
  • (string) $url The URL that should be embedded.
    Required: Yes
  • (array) $args Optional. Additional arguments and parameters for retrieving embed HTML. Default empty.
    Required: No
    Padrão: (empty)
Ver:
  • WP_oEmbed
Retorna:
  • (false|string) False on failure or the embed HTML on success.
Definido em:
Codex:

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



Fonte

function wp_oembed_get( $url, $args = '' ) {
	$oembed = _wp_oembed_get_object();
	return $oembed->get_html( $url, $args );
}