automatic_feed_links()
Deprecated from version 3.0.0. It is no longer supported and can be removed in future releases. Use add_theme_support() instead.
Enable/disable automatic general feed link outputting.
No Hooks.
Return
null
. Nothing (null).
Usage
automatic_feed_links( $add );
- $add(true|false)
- Add or remove links.
Default: true
Notes
- See: add_theme_support()
Changelog
Since 2.8.0 | Introduced. |
Deprecated since 3.0.0 | Use add_theme_support() |
automatic_feed_links() automatic feed links code WP 6.7.2
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+. }