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.


Top ↑

Source

File: wp-includes/embed.php

View on Trac



Top ↑

Changelog

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