get_the_categories

get_the_categories

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('get_the_categories') is found 1 times:

  • /wp-includes/category-template.php line 98
    094
    095
    096
    097
    098
    099
    100
    101
    102
    103
    104
         *
         * @param WP_Term[] $categories An array of categories to return for the post.
         * @param int|false $post_id    The post ID.
         */
        return apply_filters( 'get_the_categories', $categories, $post_id );
    }
     
    /**
     * Retrieves category name based on category ID.
     *
     * @since 0.71