get_author_rss_link

Print/Return link to author RSS feed.

Description

(string) get_author_rss_link( (constant) $echo = false, (int) $author_id = 1 ); 

Returns (string)

Parameters (2)

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

Usage

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

Defined (1)

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

/wp-includes/deprecated.php  
  1. function get_author_rss_link($echo = false, $author_id = 1) { 
  2. _deprecated_function( __FUNCTION__, '2.5.0', 'get_author_feed_link()' ); 
  3.  
  4. $link = get_author_feed_link($author_id); 
  5. if ( $echo ) 
  6. echo $link; 
  7. return $link;