oembed_iframe_title_attribute filter-hookWP 5.2.0

Filters the title attribute of the given oEmbed HTML iframe.

Usage

add_filter( 'oembed_iframe_title_attribute', 'wp_kama_oembed_iframe_title_attribute_filter', 10, 4 );

/**
 * Function for `oembed_iframe_title_attribute` filter-hook.
 * 
 * @param string $title  The title attribute.
 * @param string $result The oEmbed HTML result.
 * @param object $data   A data object result from an oEmbed provider.
 * @param string $url    The URL of the content to be embedded.
 *
 * @return string
 */
function wp_kama_oembed_iframe_title_attribute_filter( $title, $result, $data, $url ){

	// filter...
	return $title;
}
$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.

Changelog

Since 5.2.0 Introduced.

Where the hook is called

wp_filter_oembed_iframe_title_attribute()
oembed_iframe_title_attribute
wp-includes/embed.php 879
$title = apply_filters( 'oembed_iframe_title_attribute', $title, $result, $data, $url );

Where the hook is used in WordPress

Usage not found.