get_post_ancestors Wordpress function


Description:

Retrieve ancestors of a post.


Syntax:


Arguments:

(int|object) $post Post ID or post object


Return Type:

(array) Ancestor IDs or empty array if none are found.


Define At:

wp-includes/post.php


Wordpress Reference URL:

http://codex.wordpress.org/Function_Reference/get_post_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 ×