Warning: This function has been deprecated. Use add_theme_support() instead.

automatic_feed_links() WordPress Function

The automatic_feed_links() function enables RSS feed links for posts and comments. This function should be used in your theme's header.php file.

automatic_feed_links( bool $add = true ) #

Enable/disable automatic general feed link outputting.


Description

Top ↑

See also


Top ↑

Parameters

$add

(bool)(Optional) Add or remove links.

Default value: true


Top ↑

Source

File: wp-includes/deprecated.php

function automatic_feed_links( $add = true ) {
	_deprecated_function( __FUNCTION__, '3.0.0', "add_theme_support( 'automatic-feed-links' )" );

	if ( $add )
		add_theme_support( 'automatic-feed-links' );
	else
		remove_action( 'wp_head', 'feed_links_extra', 3 ); // Just do this yourself in 3.0+.
}


Top ↑

Changelog

Changelog
VersionDescription
3.0.0Use add_theme_support()
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.

Show More