Definition:
function wp_oembed_get( $url, $args = '' ) {}
Attempts to fetch the embed HTML for a provided URL using oEmbed.
Parameters
- string $url: The URL that should be embedded.
- array $args: Additional arguments and parameters.
Return values
returns:The original URL on failure or the embed HTML on success.
Source code
function wp_oembed_get( $url, $args = '' ) { require_once( ABSPATH . WPINC . '/class-oembed.php' ); $oembed = _wp_oembed_get_object(); return $oembed->get_html( $url, $args ); }
3963
No comments yet... Be the first to leave a reply!