Retrieve post ancestors.
This is no longer needed as WP_Post lazy-loads the ancestors property with get_post_ancestors() .
$postWP_Postrequired
function _get_post_ancestors( &$post ) {
_deprecated_function( __FUNCTION__, '3.5.0' );
}
| Version | Description |
|---|---|
| 3.5.0 | Use get_post_ancestors() |
| 2.3.4 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/_get_post_ancestors