Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: wp_list_comments_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
1961      /**
1962       * Filters the arguments used in retrieving the comment list.
1963       *
1964       * @since 4.0.0
1965       *
1966       * @see wp_list_comments()
1967       *
1968       * @param array $r An array of arguments for displaying comments.
1969       */
1970      $r = apply_filters( 'wp_list_comments_args', $r );
1971
1972      // Figure out what comments we'll be looping through ($_comments)
1973      if ( null !== $comments ) {
1974           $comments = (array) $comments;
1975           if ( empty($comments) )
1976                return;
1977           if ( 'all' != $r['type'] ) {
1978                $comments_by_type = separate_comments($comments);
1979                if ( empty($comments_by_type[$r['type']]) )