feed_content_type хук-фильтр . WP 2.8.0
Filters the content type for a specific feed type.
Использование
add_filter( 'feed_content_type', 'filter_function_name_9391', 10, 2 ); function filter_function_name_9391( $content_type, $type ){ // filter... return $content_type; }
- $content_type(строка)
- Content type indicating the type of data that a feed contains.
- $type(строка)
- Type of feed. Possible values include 'rss', rss2', 'atom', and 'rdf'.
Список изменений
С версии 2.8.0 | Введена. |
Где вызывается хук
feed_content_type
wp-includes/feed.php 774
return apply_filters( 'feed_content_type', $content_type, $type );