apply_filters( 'get_the_categories', WP_Term[] $categories, int|false $id )

Filters the array of categories to return for a post.


Description


Parameters

$categories

(WP_Term[]) An array of categories to return for the post.

$id

(int|false) ID of the post.


Top ↑

Source

File: wp-includes/category-template.php

View on Trac


Top ↑

Changelog

Version Description
4.4.0 Added $id parameter.
3.1.0 Introduced.