On this page
automatic_feed_links( bool $add = true )
This function has been deprecated. Use add_theme_support() instead.
Enable/disable automatic general feed link outputting.
Description
See also
Parameters
$addbool Optional-
Add or remove links.
Default:
true
Source
File: wp-includes/deprecated.php. View all references
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+.
}
Related
Uses
| Uses | Description |
|---|---|
| add_theme_support() wp-includes/theme.php | Registers theme support for a given feature. |
| remove_action() wp-includes/plugin.php | Removes a callback function from an action hook. |
| _deprecated_function() wp-includes/functions.php | Marks a function as deprecated and inform when it has been used. |
Changelog
| Version | Description |
|---|---|
| 3.0.0 | Use add_theme_support() |
| 2.8.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/automatic_feed_links