Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: the_author_link

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
247           /**
248            * Filters the author URL link HTML.
249            *
250            * @since 6.0.0
251            *
252            * @param string  $link       The default rendered author HTML link.
253            * @param string  $author_url Author's URL.
254            * @param WP_User $authordata Author user data.
255            */
256           return apply_filters( 'the_author_link', $link, $author_url, $authordata );
257      } else {
258           return get_the_author();
259      }
260 }
261
262 /**
263  * Displays either author's link or author's name.
264  *
265  * If the author has a home page set, echo an HTML link, otherwise just echo the