Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: respond_link

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
1682           $respond_link = get_permalink() . '#respond';
1683           /**
1684            * Filters the respond link when a post has no comments.
1685            *
1686            * @since 4.4.0
1687            *
1688            * @param string $respond_link The default response link.
1689            * @param int    $post_id      The post ID.
1690            */
1691           $comments_link = apply_filters( 'respond_link', $respond_link, $post_id );
1692      } else {
1693           $comments_link = get_comments_link();
1694      }
1695
1696      $link_attributes = '';
1697
1698      /**
1699       * Filters the comments link attributes for display.
1700       *