get_ancestors – filter

Filters a given object’s ancestors. 

Parameters

.
( 3.1.0 ) . .
Introduced
( 4.1.1 ) the `$resource_type` parameter. . . .
( int[] ) $ancestors An array of IDs of object ancestors. . . .
( int ) $object_id Object ID. . . .
$object_type
( string ) Type of object. . . .
$resource_type
( string ) Type of resource $object_type is. . . .
API Letters: ,

Implementers