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:
  • (string|bool) The embed HTML on success, false on failure.
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_filter_oembed_result, wp_oembed_ensure_format

Top Google Results

User discussions

wpseek mobile