Core Function
View Source on Trac ↗ get_oembed_response_data()
get_oembed_response_data( mixed $post, mixed $width ) Retrieves the oEmbed response data for a given post.
Parameters 2 required
| Name / Type | Description |
|---|---|
| (WP_Post | | int) $post Post ID or post object. Required |
| $width int | The requested width. Required |
Return Value
((array)
(array | false) Response data on success, false if post doesn't exist,
is not publicly viewable or post type is not embeddable.
Function Information
Since Version
4.4.0
Source File
wp-includes/embed.php
Advertisement