On this page
apply_filters( 'get_ancestors', int[] $ancestors, int $object_id, string $object_type, string $resource_type )
Filters a given object’s ancestors.
Parameters
$ancestorsint[]-
An array of IDs of object ancestors.
$object_idint-
Object ID.
$object_typestring-
Type of object.
$resource_typestring-
Type of resource $object_type is.
Source
File: wp-includes/taxonomy.php. View all references
return apply_filters( 'get_ancestors', $ancestors, $object_id, $object_type, $resource_type );
Related
Used By
| Used By | Description |
|---|---|
| get_ancestors() wp-includes/taxonomy.php | Gets an array of ancestor IDs for a given object. |
Changelog
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/get_ancestors