get_ancestors Wordpress function


Description:

Get an array of ancestor IDs for a given object.


Syntax:


Arguments:

(int) $object_id The ID of the object
(string) $object_type The type of object for which we'll be retrieving ancestors.


Return Type:

(array) of ancestors from lowest to highest in the hierarchy.


Define At:

wp-includes/taxonomy.php


Wordpress Reference URL:

http://codex.wordpress.org/Function_Reference/get_ancestors


0 Flares Facebook 0 Google+ 0 0 Flares ×
Posted in: Wordpress functions
0 Flares Facebook 0 Pin It Share 0 Google+ 0 0 Flares ×