Filters a given object’s ancestors.
Parameters
$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.
Source
return apply_filters( 'get_ancestors', $ancestors, $object_id, $object_type, $resource_type );
User Contributed Notes
You must log in before being able to contribute a note or feedback.