the_author_link
Filters the author URL link HTML.
Usage
add_filter( 'the_author_link', 'wp_kama_the_author_link_filter', 10, 3 ); /** * Function for `the_author_link` filter-hook. * * @param string $link The default rendered author HTML link. * @param string $author_url Author's URL. * @param WP_User $authordata Author user data. * * @return string */ function wp_kama_the_author_link_filter( $link, $author_url, $authordata ){ // filter... return $link; }
- $link(string)
- The default rendered author HTML link.
- $author_url(string)
- Author's URL.
- $authordata(WP_User)
- Author user data.
Changelog
Since 6.0.0 | Introduced. |
Where the hook is called
the_author_link
wp-includes/author-template.php 257
return apply_filters( 'the_author_link', $link, $author_url, $authordata );