Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: comments_popup_link_attributes

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
1703      $link_attributes = '';
1704
1705      /**
1706       * Filters the comments link attributes for display.
1707       *
1708       * @since 2.5.0
1709       *
1710       * @param string $link_attributes The comments link attributes. Default empty.
1711       */
1712      $link_attributes = apply_filters( 'comments_popup_link_attributes', $link_attributes );
1713
1714      printf(
1715           '<a href="%1$s"%2$s%3$s>%4$s</a>',
1716           esc_url( $comments_link ),
1717           ! empty( $css_class ) ? ' class="' . $css_class . '" ' : '',
1718           $link_attributes,
1719           get_comments_number_text( $zero, $one, $more )
1720      );
1721 }