get_default_feed

Advertisement

Summery Summery

Retrieve the default feed.

Syntax Syntax

get_default_feed()

Description Description

The default feed is ‘rss2’, unless a plugin changes it through the ‘default_feed’ filter.

Return Return

(string) Default feed, or for example 'rss2', 'atom', etc.

Source Source

File: wp-includes/feed.php

 * @return string Default feed, or for example 'rss2', 'atom', etc.
 */
function get_default_feed() {
	/**
	 * Filters the default feed type.
	 *
	 * @since 2.5.0
	 *
	 * @param string $feed_type Type of default feed. Possible values include 'rss2', 'atom'.
	 *                          Default 'rss2'.
	 */
	$default_feed = apply_filters( 'default_feed', 'rss2' );

Advertisement

Changelog Changelog

Changelog
Version Description
2.5.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.