WordPress开发者和主题制作者的搜索引擎



automatic_feed_links ›

Since2.8.0
已弃用3.0.0
automatic_feed_links ( $add = true )
参数:
  • (bool) $add Optional, default is true. Add or remove links. Defaults to true.
    Required: No
    默认: true
查看:
定义在:
文档:

Enable/disable automatic general feed link outputting.



源码

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