A WordPress-centric search engine for devs and theme authors



automatic_feed_links ›

Since2.8.0
Deprecated3.0.0
automatic_feed_links ( $add = true )
Parameters:
  • (bool) $add Optional, default is true. Add or remove links. Defaults to 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+
}