oembed_result WordPress Filter Hook

The oembed_result hook is used to filter the final HTML output of an oEmbed request. This hook is called after the result is received from the oEmbed provider, but before it is returned to the requester.

apply_filters( 'oembed_result', string|false $data, string $url, string|array $args ) #

Filters the HTML returned by the oEmbed provider.


Parameters

$data

(string|false)The returned oEmbed HTML (false if unsafe).

$url

(string)URL of the content to be embedded.

$args

(string|array) Additional arguments for retrieving embed HTML. See wp_oembed_get() for accepted arguments. Default empty.


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.