wp_list_comments_args
Filters the arguments used in retrieving the comment list.
Использование
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(массив)
- An array of arguments for displaying comments.
Список изменений
С версии 4.0.0 | Введена. |
Где вызывается хук
wp_list_comments_args
wp-includes/comment-template.php 2271
$parsed_args = apply_filters( 'wp_list_comments_args', $parsed_args );