Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: comment_reply_link_args

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
1662       * Filters the comment reply link arguments.
1663       *
1664       * @since 4.1.0
1665       *
1666       * @param array      $args    Comment reply link arguments. See get_comment_reply_link()
1667       *                            for more information on accepted arguments.
1668       * @param WP_Comment $comment The object of the comment being replied to.
1669       * @param WP_Post    $post    The WP_Post object.
1670       */
1671      $args = apply_filters( 'comment_reply_link_args', $args, $comment, $post );
1672
1673      if ( get_option( 'comment_registration' ) && ! is_user_logged_in() ) {
1674           $link = sprintf(
1675                '<a rel="nofollow" class="comment-reply-login" href="%s">%s</a>',
1676                esc_url( wp_login_url( get_permalink() ) ),
1677                $args['login_text']
1678           );
1679      } else {
1680           $data_attributes = array(