automatic_feed_links( bool $add = true )

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

Enable/disable automatic general feed link outputting.

Description

See also

Parameters

$addbooloptional
Add or remove links.

Default:true

Source

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+.
}

Changelog

VersionDescription
3.0.0Use add_theme_support()
2.8.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.