oembed_iframe_title_attribute WordPress Filter Hook
The oembed_iframe_title_attribute WordPress hook allows you to override the title attribute of an oEmbed iframe. This can be useful if you want to make the title more descriptive, or if you want to add special characters that are not allowed in the title attribute.
apply_filters( 'oembed_iframe_title_attribute', string $title , string $result , object $data , string $url ) #
Filters the title attribute of the given oEmbed HTML iframe.
Parameters
- $title
(string)The title attribute.
- $result
(string)The oEmbed HTML result.
- $data
(object)A data object result from an oEmbed provider.
- $url
(string)The URL of the content to be embedded.
Source
File: wp-includes/embed.php
Changelog
Version | Description |
---|---|
5.2.0 | Introduced. |