feed_content_type WordPress Filter Hook

The "feed_content_type" hook is used to change the content type of the main feed. This is useful for sites that want to deliver a different content type than what is default for WordPress.

apply_filters( 'feed_content_type', string $content_type, string $type ) #

Filters the content type for a specific feed type.


Parameters

$content_type

(string)Content type indicating the type of data that a feed contains.

$type

(string)Type of feed. Possible values include 'rss', rss2', 'atom', and 'rdf'.


Top ↑

Source

File: wp-includes/feed.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
2.8.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.