the_author_posts_link
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' ); /** * Function for `the_author_posts_link` filter-hook. * * @param string $link HTML link. * * @return string */ function wp_kama_the_author_posts_link_filter( $link ){ // filter... return $link; }
- $link(string)
- HTML link.
Changelog
Since 2.9.0 | Introduced. |
Where the hook is called
the_author_posts_link
wp-includes/author-template.php 335
return apply_filters( 'the_author_posts_link', $link );