Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




wp_oembed_get [ WordPress Function ]

wp_oembed_get ( $url, $args = '' )
Parameters:
  • (string) $url The URL that should be embedded.
  • (array) $args Additional arguments and parameters.
Uses:
See:
  • WP_oEmbed
Returns:
  • (bool|string) False on failure or the embed HTML on success.
Defined at:



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

Source


<?php
function wp_oembed_get$url$args '' ) {
    require_once( 
ABSPATH WPINC '/class-oembed.php' );
    
$oembed _wp_oembed_get_object();
    return 
$oembed->get_html$url$args );
}
?>

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics