author_feed_link
Filters the feed link for a given author.
Usage
add_filter( 'author_feed_link', 'wp_kama_author_feed_link_filter', 10, 2 ); /** * Function for `author_feed_link` filter-hook. * * @param string $link The author feed link. * @param string $feed Feed type. Possible values include 'rss2', 'atom'. * * @return string */ function wp_kama_author_feed_link_filter( $link, $feed ){ // filter... return $link; }
- $link(string)
- The author feed link.
- $feed(string)
- Feed type. Possible values include 'rss2', 'atom'.
Changelog
Since 1.5.1 | Introduced. |
Where the hook is called
author_feed_link
wp-includes/link-template.php 899
$link = apply_filters( 'author_feed_link', $link, $feed );