wp_list_comments_args
Filters the arguments used in retrieving the comment list.
Usage
add_filter( 'wp_list_comments_args', 'wp_kama_list_comments_args_filter' ); /** * Function for `wp_list_comments_args` filter-hook. * * @param array $parsed_args An array of arguments for displaying comments. * * @return array */ function wp_kama_list_comments_args_filter( $parsed_args ){ // filter... return $parsed_args; }
- $parsed_args(array)
- An array of arguments for displaying comments.
Changelog
Since 4.0.0 | Introduced. |
Where the hook is called
wp_list_comments_args
wp-includes/comment-template.php 2254
$parsed_args = apply_filters( 'wp_list_comments_args', $parsed_args );