apply_filters( 'the_category_list', array $categories, int|bool $post_id )

Filters the categories before building the category list.


Parameters

$categories

(array) An array of the post's categories.

$post_id

(int|bool) ID of the post we're retrieving categories for. When false, we assume the current post in the loop.


Source

File: wp-includes/category-template.php

View on GitHub



Changelog

Changelog
Version Description
WP-4.4.0 Introduced.