W3cubDocs

/WordPress

apply_filters( ‘wp_list_categories’, string $output, array|string $args )

Filters the HTML output of a taxonomy list.

Parameters

$outputstring
HTML output.
$argsarray|string
An array or query string of taxonomy-listing arguments. See wp_list_categories() for information on accepted arguments.
More Arguments from wp_list_categories( … $args )Array or string of arguments. See WP_Term_Query::__construct() for information on accepted arguments.

Source

$html = apply_filters( 'wp_list_categories', $output, $args );

Changelog

Version Description
2.1.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_list_categories