get_oembed_response_data


get_oembed_response_data ( $post, $width )

Parameters:
  • (WP_Post|int) post Post ID or post object.
  • (int) width The requested width.
Returns:
  • (array|false) Response data on success, false if post doesn't exist or is not publicly viewable.
Defined at:

Description

Retrieves the oEmbed response data for a given post.

Related Functions

get_oembed_response_data_rich, get_oembed_response_data_for_url, get_oembed_endpoint_url, get_embed_template, rest_ensure_response

Top Google Results

User discussions

wpseek mobile