oembed_dataparse WordPress Filter Hook

The oembed_dataparse Wordpress hook is used to parse the data returned from an oEmbed provider. This hook is called when the oEmbed data is retrieved from the provider, and is used to parse the data before it is stored in the database. This hook can be used to modify the data returned from the provider, or to add additional data to the oEmbed data.

apply_filters( 'oembed_dataparse', string $return, object $data, string $url ) #

Filters the returned oEmbed HTML.


Description

Use this filter to add support for custom data types, or to filter the result.


Top ↑

Parameters

$return

(string)The returned oEmbed HTML.

$data

(object)A data object result from an oEmbed provider.

$url

(string)The URL of the content to be embedded.


Top ↑

Source

File: wp-includes/class-wp-oembed.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
2.9.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.