wpseek.com
A WordPress-centric search engine for devs and theme authors



automatic_feed_links › WordPress Function

Since2.8.0
Deprecated3.0.0
automatic_feed_links ( $add = true )
Parameters:
  • (bool) $add Optional. Add or remove links. Default true.
    Required: No
    Default: true
See:
Defined at:
Codex:

Enable/disable automatic general feed link outputting.



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