get_ancestors

最后更新于:2021-11-26 10:49:18

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

Filters a given object’s ancestors.

参数

$ancestors

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

$object_id

(int)
Object ID.

$object_type

(string)
Type of object.

$resource_type

(string)
Type of resource $object_type is.

源文件

文件: gc-includes/taxonomy.php

View on Trac