automatic_feed_links

Enable/disable automatic general feed link outputting.

Description

automatic_feed_links( (bool) $add = true ); 

Parameters (1)

0. $add — Optional. (bool) => true
Optional, default is true. Add or remove links. Defaults to true.

Usage

  1. if ( !function_exists( 'automatic_feed_links' ) ) { 
  2. require_once ABSPATH . WPINC . '/deprecated.php'; 
  3.  
  4. // Optional, default is true. Add or remove links. Defaults to true. 
  5. $add = true; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = automatic_feed_links($add); 
  9.  

Defined (1)

The function is defined in the following location(s).

/wp-includes/deprecated.php  
  1. function automatic_feed_links( $add = true ) { 
  2. _deprecated_function( __FUNCTION__, '3.0.0', "add_theme_support( 'automatic-feed-links' )" ); 
  3.  
  4. if ( $add ) 
  5. add_theme_support( 'automatic-feed-links' ); 
  6. else 
  7. remove_action( 'wp_head', 'feed_links_extra', 3 ); // Just do this yourself in 3.0+