apply_filters( 'get_the_categories', array $categories, int $id )

Filters the array of categories to return for a post.


Parameters

$categories

An array of categories to return for the post.

$id

ID of the post.


Source

File: wp-includes/category-template.php

View on GitHub



Changelog

Changelog
Version Description
WP-4.4.0 Added $id parameter.
WP-3.1.0 Introduced.