oembed_response_data filter-hook . WP 4.4.0
Filters the oEmbed response data.
Usage
add_filter( 'oembed_response_data', 'filter_function_name_6952', 10, 4 ); function filter_function_name_6952( $data, $post, $width, $height ){ // filter... return $data; }
- $data(array)
- The response data.
- $post(WP_Post)
- The post object.
- $width(int)
- The requested width.
- $height(int)
- The calculated height.
Changelog
Since 4.4.0 | Introduced. |
Where the hook is called
oembed_response_data
wp-includes/embed.php 577
return apply_filters( 'oembed_response_data', $data, $post, $width, $height );
Where in WP core the hook is used WordPress
wp-includes/default-filters.php 603
add_filter( 'oembed_response_data', 'get_oembed_response_data_rich', 10, 4 );