_get_post_ancestors()WP 2.3.4

Deprecated from version 3.5.0. It is no longer supported and can be removed in future releases. Use get_post_ancestors() instead.

Retrieve post ancestors.

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

Internal function — this function is designed to be used by the kernel itself. It is not recommended to use this function in your code.

No Hooks.

Return

null. Nothing (null).

Usage

_get_post_ancestors( $post );
$post(WP_Post) (required) (passed by reference — &)
Post object, passed by reference (unused).

Notes

Changelog

Since 2.3.4 Introduced.
Deprecated since 3.5.0 Use get_post_ancestors()

_get_post_ancestors() code WP 6.5.2

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