Filter hook 'the_category_list'

in WP Core File wp-includes/category-template.php at line 158

Description

Filters the categories before building the category list.

Occurrences

Filename Line Number
wp-includes/category-template.php 158

Parameters

Type Name Description
WP_Term[] $categories An array of the post's categories.
int|false $post_id ID of the post to retrieve categories for. When `false`, defaults to the current post in the loop.

PHP Doc

/**
	 * Filters the categories before building the category list.
	 *
	 * @since 4.4.0
	 *
	 * @param WP_Term[] $categories An array of the post's categories.
	 * @param int|false $post_id    ID of the post to retrieve categories for.
	 *                              When `false`, defaults to the current post in the loop.
	 */