oembed_iframe_title_attribute
Filters the title attribute of the given oEmbed HTML iframe.
Использование
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(строка)
- The title attribute.
- $result(строка)
- The oEmbed HTML result.
- $data(объект)
- A data object result from an oEmbed provider.
- $url(строка)
- The URL of the content to be embedded.
Список изменений
С версии 5.2.0 | Введена. |
Где вызывается хук
oembed_iframe_title_attribute
wp-includes/embed.php 882
$title = apply_filters( 'oembed_iframe_title_attribute', $title, $result, $data, $url );