WordPress开发者和主题制作者的搜索引擎



_get_post_ancestors ›

Since2.3.4
已弃用3.5.0
_get_post_ancestors ( $post )
参数:
  • (WP_Post) $post Post object, passed by reference (unused).
    Required: Yes
查看:
定义在:
文档:

Retrieve post ancestors.

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



源码

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