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.
Source
Changelog
Version | Description |
---|---|
2.9.0 | Introduced. |