wp_list_comments_args хук-фильтрWP 4.0.0

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()
wp_list_comments_args
wp-includes/comment-template.php 2248
$parsed_args = apply_filters( 'wp_list_comments_args', $parsed_args );

Где используется хук в WordPress

Использование не найдено.