启用/禁用自动常规馈送链接输出。
原型
automatic_feed_links( bool $add = true )
参数
$add
(bool)
(Optional)
添加或删除链接。默认为true。
源文件
路径:wp-includes/deprecated.php
<?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+
}
...
?>
其他
英文文档:https://developer.wordpress.org/reference/functions/automatic_feed_links/