wp_list_categories filter-hookWP 2.1.0

Filters the HTML output of a taxonomy list.

Usage

add_filter( 'wp_list_categories', 'wp_kama_list_categories_filter', 10, 2 );

/**
 * Function for `wp_list_categories` filter-hook.
 * 
 * @param string       $output HTML output.
 * @param array|string $args   An array or query string of taxonomy-listing arguments. See wp_list_categories() for information on accepted arguments.
 *
 * @return string
 */
function wp_kama_list_categories_filter( $output, $args ){

	// filter...
	return $output;
}
$output(string)
HTML output.
$args(array|string)
An array or query string of taxonomy-listing arguments. See wp_list_categories() for information on accepted arguments.

Changelog

Since 2.1.0 Introduced.

Where the hook is called

wp_list_categories()
wp_list_categories
wp-includes/category-template.php 672
$html = apply_filters( 'wp_list_categories', $output, $args );

Where the hook is used in WordPress

Usage not found.