get_the_categories – filter

Filters the array of categories to return for a post. 

Parameters

.
( 3.1.0 ) . .
Added
( 4.4.0 ) `$post_id` parameter. . . .
$categories
( WP_Term[] ) An array of categories to return for the post. . . .
$post_id
( int|false ) ID of the post. . . .
API Letters: ,,

Implementers