Warning: This function has been deprecated. Use get_post_ancestors() instead.

_get_post_ancestors( WP_Post $post )

Retrieve post ancestors.


Description Description

This is no longer needed as WP_Post lazy-loads the ancestors property with get_post_ancestors().

See also See also


Top ↑

Parameters Parameters

$post

(WP_Post) (Required) Post object, passed by reference (unused).


Top ↑

Source Source

File: wp-includes/deprecated.php

function _get_post_ancestors( &$post ) {
	_deprecated_function( __FUNCTION__, '3.5.0' );
}

Top ↑

Changelog Changelog

Changelog
Version Description
3.5.0 Use get_post_ancestors()
2.3.4 Introduced.


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.