apply_filters( 'feed_content_type', string $content_type, string $type )
- Since
- 2.8.0
Filters the content type for a specific feed type.
Compatibility
- WordPress
- since 2.8.0
- 6.7.7
- 6.8.8
- 6.9.7
- 7.0.4
- 7.1.0
Present in every tracked release (6.7.7 to 7.1.0).
Parameters
$content_typestring- Content type indicating the type of data that a feed contains.
$typestring- Type of feed. Possible values include 'rss', rss2', 'atom', and 'rdf'.
Where this hook fires · 1
wp-includes/feed.php:791feed_content_type()
Source code
<?php * * @since 2.8.0 * * @param string $content_type Content type indicating the type of data that a feed contains. * @param string $type Type of feed. Possible values include 'rss', rss2', 'atom', and 'rdf'. */ return apply_filters( 'feed_content_type', $content_type, $type );} /** * Builds SimplePie object based on RSS or Atom feed from URL. * * @since 2.8.0Changelog
Introduced in 2.8.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
About this page
- Parsed data
- Generated from the wordpress-develop 7.1.0 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
- Corrections
- Something wrong on this page? Report it and it gets fixed in the next regeneration.