Warning: This function has been deprecated. Use add_theme_support() instead.
automatic_feed_links( bool $add = true )
Enable/disable automatic general feed link outputting.
描述
参数
- $add
-
(bool)
(Optional)
Add or remove links. Defaults to true.Default value: true
源代码
File: wp-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( 'wp_head', 'feed_links_extra', 3 ); // Just do this yourself in 3.0+
}
更新日志
Version | 描述 |
---|---|
3.0.0 | Use add_theme_support() |
2.8.0 | Introduced. |
相关函数
Uses
-
wp-includes/theme.php:
add_theme_support() -
wp-includes/functions.php:
_deprecated_function() -
wp-includes/plugin.php:
remove_action()
User Contributed Notes
你可能对这些文章感兴趣:
- wordpress函数gd_edit_image_support()用法示例
- wordpress函数funky_javascript_callback()用法示例
- wordpress函数funky_javascript_fix()用法示例
- wordpress函数gallery_shortcode()用法示例
- wordpress函数format_to_edit()用法示例
- wordpress函数format_to_post()用法示例
- wordpress函数form_option()用法示例
- wordpress函数force_ssl_login()用法示例
- wordpress函数format_code_lang()用法示例
- wordpress函数format_for_editor()用法示例
- wordpress函数force_ssl_content()用法示例
- wordpress函数flush_rewrite_rules()用法示例
- wordpress函数force_balance_tags()用法示例
- wordpress函数force_ssl_admin()用法示例
如有疑问,请前往问答中心反馈!
反馈