get_ancestors

Advertisement

Summery Summery

Filters a given object’s ancestors.

Syntax Syntax

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

Parameters Parameters

$ancestors

An array of IDs of object ancestors.

$object_id

Object ID.

$object_type

Type of object.

$resource_type

Type of resource $object_type is.

Source Source

File: wp-includes/taxonomy.php

Advertisement

Changelog Changelog

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

Advertisement

Leave a Reply