_get_post_ancestors( WP_Post $post )

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

Retrieve post ancestors.

Description

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

See also

Parameters

$postWP_Postrequired
Post object, passed by reference (unused).

Source

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

Changelog

VersionDescription
3.5.0Use get_post_ancestors()
2.3.4Introduced.

User Contributed Notes

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