wp_oembed_get


wp_oembed_get ( $url, $args = '' )

Parameters:
  • (string) $url The URL that should be embedded.
  • (array) $args Optional. Additional arguments and parameters for retrieving embed HTML. Default empty.
See:
  • WP_oEmbed
Returns:
  • (false|string) False on failure or the embed HTML on success.
Defined at:

Description

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

Related Functions

wp_remote_get, _wp_oembed_get_object, wp_embed_defaults, wp_ajax_oembed_cache, wp_filter_oembed_result

Top Google Results

User discussions

wpseek mobile