WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )
apply_filters( "hook_name", "what_to_filter" )
.Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
Line | Code |
---|---|
2045 | /** |
2046 | * Filters the arguments used in retrieving the comment list. |
2047 | * |
2048 | * @since 4.0.0 |
2049 | * |
2050 | * @see wp_list_comments() |
2051 | * |
2052 | * @param array $parsed_args An array of arguments for displaying comments. |
2053 | */ |
2054 | $parsed_args = apply_filters( 'wp_list_comments_args', $parsed_args ); |
2055 |
|
2056 | // Figure out what comments we'll be looping through ($_comments). |
2057 | if ( null !== $comments ) { |
2058 | $comments = (array) $comments; |
2059 | if ( empty( $comments ) ) { |
2060 | return; |
2061 | } |
2062 | if ( 'all' != $parsed_args['type'] ) { |
2063 | $comments_by_type = separate_comments( $comments ); |