oembed_response_data WordPress Filter Hook
The oembed_response_data Wordpress hook allows you to modify the response data of an oEmbed request. This can be useful for customizing the output of an embedded video or other content.
apply_filters( 'oembed_response_data', array $data , WP_Post $post , int $width , int $height ) #
Filters the oEmbed response data.
Parameters
- $data
(array)The response data.
- $post
(WP_Post)The post object.
- $width
(int)The requested width.
- $height
(int)The calculated height.
Source
File: wp-includes/embed.php
Changelog
Version | Description |
---|---|
4.4.0 | Introduced. |