oembed_iframe_title_attribute хук-фильтр . WP 5.2.0
Filters the title attribute of the given oEmbed HTML iframe.
Использование
add_filter( 'oembed_iframe_title_attribute', 'filter_function_name_9235', 10, 4 ); function filter_function_name_9235( $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 849
$title = apply_filters( 'oembed_iframe_title_attribute', $title, $result, $data, $url );