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

Filters a given object’s ancestors.


Parameters

$ancestors

(array) An array of object ancestors.

$object_id

(int) Object ID.

$object_type

(string) Type of object.

$resource_type

(string) Type of resource $object_type is.


Source

File: wp-includes/taxonomy.php

View on GitHub



Changelog

Changelog
Version Description
WP-4.1.1 Introduced the $resource_type parameter.
WP-3.1.0 Introduced.