WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )
apply_filters( "hook_name", "what_to_filter" )
.Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
Line | Code |
---|---|
248 | /** |
249 | * Filters the author URL link HTML. |
250 | * |
251 | * @since 6.0.0 |
252 | * |
253 | * @param string $link The default rendered author HTML link. |
254 | * @param string $author_url Author's URL. |
255 | * @param WP_User $authordata Author user data. |
256 | */ |
257 | return apply_filters( 'the_author_link', $link, $author_url, $authordata ); |
258 | } else { |
259 | return get_the_author(); |
260 | } |
261 | } |
262 |
|
263 | /** |
264 | * Displays either author's link or author's name. |
265 | * |
266 | * If the author has a home page set, echo an HTML link, otherwise just echo the |