On this page
_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_Post Required-
Post object, passed by reference (unused).
Source
File: wp-includes/deprecated.php. View all references
function _get_post_ancestors( &$post ) {
_deprecated_function( __FUNCTION__, '3.5.0' );
}
Related
Uses
| Uses | Description |
|---|---|
| _deprecated_function() wp-includes/functions.php | Marks a function as deprecated and inform when it has been used. |
Changelog
| Version | Description |
|---|---|
| 3.5.0 | Use get_post_ancestors() |
| 2.3.4 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/_get_post_ancestors