apply_filters( 'list_cats', string $element, WP_Term|null $category )

Filters a taxonomy drop-down display element.


Description Description

A variety of taxonomy drop-down display elements can be modified just prior to display via this filter. Filterable arguments include ‘show_option_none’, ‘show_option_all’, and various forms of the term name.


Parameters Parameters

$element

(string) Category name.

$category

(WP_Term|null) The category object, or null if there's no corresponding category.


Top ↑

Source Source

File: wp-includes/category-template.php

View on Trac


Top ↑

Changelog Changelog

Changelog
Version Description
1.2.0 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.