Filter hook 'author_feed_link'

in WP Core File wp-includes/link-template.php at line 899

View Source

author_feed_link

Filter Hook
Description
Filters the feed link for a given author.

Hook Information

File Location wp-includes/link-template.php View on GitHub
Hook Type Filter
Line Number 899

Hook Parameters

Type Name Description
string $link The author feed link.
string $feed Feed type. Possible values include 'rss2', 'atom'.

Usage Examples

Basic Usage
<?php
// Hook into author_feed_link
add_filter('author_feed_link', 'my_custom_filter', 10, 2);

function my_custom_filter($link, $feed) {
    // Your custom filtering logic here
    return $link;
}

Source Code Context

wp-includes/link-template.php:899 - How this hook is used in WordPress core
<?php
 894  	 * @since 1.5.1
 895  	 *
 896  	 * @param string $link The author feed link.
 897  	 * @param string $feed Feed type. Possible values include 'rss2', 'atom'.
 898  	 */
 899  	$link = apply_filters( 'author_feed_link', $link, $feed );
 900  
 901  	return $link;
 902  }
 903  
 904  /**

PHP Documentation

<?php
/**
	 * Filters the feed link for a given author.
	 *
	 * @since 1.5.1
	 *
	 * @param string $link The author feed link.
	 * @param string $feed Feed type. Possible values include 'rss2', 'atom'.
	 */
Quick Info
  • Hook Type: Filter
  • Parameters: 2
  • File: wp-includes/link-template.php
Related Hooks

Related hooks will be displayed here in future updates.