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
2076      /**
2077       * Filters the arguments used in retrieving the comment list.
2078       *
2079       * @since 4.0.0
2080       *
2081       * @see wp_list_comments()
2082       *
2083       * @param array $parsed_args An array of arguments for displaying comments.
2084       */
2085      $parsed_args = apply_filters( 'wp_list_comments_args', $parsed_args );
2086
2087      // Figure out what comments we'll be looping through ($_comments).
2088      if ( null !== $comments ) {
2089           $comments = (array) $comments;
2090           if ( empty( $comments ) ) {
2091                return;
2092           }
2093           if ( 'all' !== $parsed_args['type'] ) {
2094                $comments_by_type = separate_comments( $comments );