Warning: This function has been deprecated. Use get_author_feed_link() instead.
get_author_rss_link() WordPress Function
The get_author_rss_link() function in WordPress is used to retrieve the URL for an author's RSS feed. This function can be used in conjunction with the wp_feed() function to display an RSS feed for an author on a WordPress site.
get_author_rss_link( bool $display = false, int $author_id = 1 ) #
Print/Return link to author RSS feed.
Description
See also
Parameters
- $display
(bool)(Optional)
Default value: false
- $author_id
(int)(Optional)
Default value: 1
Return
(string)
Source
File: wp-includes/deprecated.php
function get_author_rss_link($display = false, $author_id = 1) { _deprecated_function( __FUNCTION__, '2.5.0', 'get_author_feed_link()' ); $link = get_author_feed_link($author_id); if ( $display ) echo $link; return $link; }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
2.5.0 | Use get_author_feed_link() |
1.2.0 | Introduced. |