Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: comment_author_link_rel

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
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,