default_feed WordPress Filter Hook

The default_feed WordPress hook is used to set the default feed for a WordPress site. This hook is used by the default_feed_modify() function.

apply_filters( 'default_feed', string $feed_type ) #

Filters the default feed type.


Parameters

$feed_type

(string)Type of default feed. Possible values include 'rss2', 'atom'. Default 'rss2'.


Top ↑

Source

File: wp-includes/feed.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
2.5.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.