Un motore di ricerca WordPress per sviluppatori e autori di temi



wp_oembed_get ›

Da2.9.0
Deprecaton/a
wp_oembed_get ( $url, $args = '' )
Parametri: (2)
  • (string) $url The URL that should be embedded.
    Richiesto:
  • (array) $args Optional. Additional arguments and parameters for retrieving embed HTML. Default empty.
    Richiesto: No
    Default: (vuoto)
Vedi:
  • WP_oEmbed
Ritorna:
  • (false|string) False on failure or the embed HTML on success.
Definito a:
Codex:

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



Sorgenti

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