wp_list_categories WordPress Filter Hook

The wp_list_categories hook is a great way to display a list of categories on your WordPress site. This hook can be used in your theme's sidebar, header, or footer, or anywhere else you want to display a list of categories.

apply_filters( 'wp_list_categories', string $output, array|string $args ) #

Filters the HTML output of a taxonomy list.


Parameters

$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.


Top ↑

Source

File: wp-includes/category-template.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
2.1.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.