检索后祖先。
原型
_get_post_ancestors( WP_Post $post )
描述
这不再需要,因为WP_Post使用get_post_ancestors()延迟加载祖先属性。
参考:
- get_post_ancestors()
参数
$post
(WP_Post)
(Required)
Post对象,通过引用传递(未使用)。
源文件
路径:wp-includes/deprecated.php
<?php
...
function _get_post_ancestors( &$post ) {
_deprecated_function( __FUNCTION__, '3.5.0' );
}
...
?>
其他
英文文档:https://developer.wordpress.org/reference/functions/_get_post_ancestors/