automatic_feed_links()
最后更新于:2021-11-25 19:52:19
automatic_feed_links( bool$add=true)Enable/disable automatic general feed link outputting.
参数
- $add
-
(bool) (Optional) Add or remove links.
Default value: true
源文件
文件: gc-includes/deprecated.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( 'gc_head', 'feed_links_extra', 3 ); // Just do this yourself in 3.0+.
}