apply_filters( 'get_ancestors', int[] $ancestors, int $object_id, string $object_type, string $resource_type )

Filters a given object’s ancestors.

Parameters Parameters


(int[]) An array of IDs of object ancestors.


(int) Object ID.


(string) Type of object.


(string) Type of resource $object_type is.

Top ↑

Source Source

File: wp-includes/taxonomy.php

View on Trac

Top ↑

Changelog Changelog

Version Description
4.1.1 Introduced the $resource_type parameter.
3.1.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.