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.


Top ↑

Source

File: wp-includes/embed.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
4.4.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.