oembed_linktypes хук-фильтр . WP 2.9.0
Filters the link types that contain oEmbed provider URLs.
Использование
add_filter( 'oembed_linktypes', 'filter_function_name_9624' ); function filter_function_name_9624( $format ){ // filter... return $format; }
- $format(строка[])
- Array of oEmbed link types. Accepts 'application/json+oembed', 'text/xml+oembed', and 'application/xml+oembed' (incorrect, used by at least Vimeo).
Список изменений
С версии 2.9.0 | Введена. |
Где вызывается хук
oembed_linktypes
wp-includes/class-wp-oembed.php 456-463
$linktypes = apply_filters( 'oembed_linktypes', array( 'application/json+oembed' => 'json', 'text/xml+oembed' => 'xml', 'application/xml+oembed' => 'xml', ) );