the_author_posts_link filter-hookWP 2.9.0

Filters the link to the author page of the author of the current post.

Usage

add_filter( 'the_author_posts_link', 'wp_kama_the_author_posts_link_filter', 10, 3 );

/**
 * Function for `the_author_posts_link` filter-hook.
 * 
 * @param string $link   HTML link.
 * @param string $author Author's display name.
 * @param string $title  Text originally used for a title attribute.
 *
 * @return string
 */
function wp_kama_the_author_posts_link_filter( $link, $author, $title ){

	// filter...
	return $link;
}
$link(string)
HTML link.
$author(string)
Author's display name.
$title(string)
Text originally used for a title attribute.

Changelog

Since 2.9.0 Introduced.
Since 7.0.0 Added $author and $title parameters.

Where the hook is called

get_the_author_posts_link()
the_author_posts_link
wp-includes/author-template.php 355
return apply_filters( 'the_author_posts_link', $link, $author, $title );

Where the hook is used in WordPress

Usage not found.