Filters a taxonomy drop-down display element. 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.
Filtre un élément d'affichage de la liste déroulante de la taxonomie. Ce filtre permet de modifier divers éléments d'affichage de la liste déroulante de la taxonomie juste avant leur affichage. Les arguments filtrables comprennent "show_option_none", "show_option_all" et diverses formes du nom du terme.
$args = ''
Sortie :
@param string $element Category name.
@param WP_Term|null $category The category object, or null if there's no corresponding category.
@param string $output HTML output.
@param array $parsed_args Arguments used to build the drop-down.
@param array|string $args {
@return void|string|false Void if 'echo' argument is true, HTML list of categories if 'echo' is false.
add_filter('wp_list_categories', 'custom_cat_list');
function custom_cat_list($list) {
return $list;
}
Chargement des actualités...