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 |
---|---|
237 | /** |
238 | * Filters the rel attributes of the comment author's link. |
239 | * |
240 | * @since 6.2.0 |
241 | * |
242 | * @param string[] $rel_parts An array of strings representing the rel tags |
243 | * which will be joined into the anchor's rel attribute. |
244 | * @param WP_Comment $comment The comment object. |
245 | */ |
246 | $rel_parts = apply_filters( 'comment_author_link_rel', $rel_parts, $comment ); |
247 |
|
248 | $rel = implode( ' ', $rel_parts ); |
249 | $rel = esc_attr( $rel ); |
250 | // Empty space before 'rel' is necessary for later sprintf(). |
251 | $rel = ! empty( $rel ) ? sprintf( ' rel="%s"', $rel ) : ''; |
252 |
|
253 | $return = sprintf( |
254 | '<a href="%1$s" class="url"%2$s>%3$s</a>', |
255 | $url, |