get_category_rss_link

Print/Return link to category RSS2 feed.

Description

(string) get_category_rss_link( (constant) $echo = false, (int) $cat_ID = 1 ); 

Returns (string)

Parameters (2)

0. $echo — Optional. (constant) => false
The echo.
1. $cat_id (int)
The cat id.

Usage

  1. if ( !function_exists( 'get_category_rss_link' ) ) { 
  2. require_once ABSPATH . WPINC . '/deprecated.php'; 
  3.  
  4. // The echo. 
  5. $echo = false; 
  6.  
  7. // The cat id. 
  8. $cat_id = -1; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = get_category_rss_link($echo, $cat_id); 
  12.  

Defined (1)

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

/wp-includes/deprecated.php  
  1. function get_category_rss_link($echo = false, $cat_ID = 1) { 
  2. _deprecated_function( __FUNCTION__, '2.5.0', 'get_category_feed_link()' ); 
  3.  
  4. $link = get_category_feed_link($cat_ID, 'rss2'); 
  5.  
  6. if ( $echo ) 
  7. echo $link; 
  8. return $link;