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



wp_get_post_cats › WordPress Function

Since1.0.1
已弃用2.1.0
wp_get_post_cats ( $blogid = '1', $post_id = 0 )
参数: (2)
  • (int) $blogid Not Used
    Required: No
    默认: '1'
  • (int) $post_id
    Required: No
    默认:
查看:
返回:
  • (array)
定义在:
文档:

Retrieves a list of post categories.



源码

function wp_get_post_cats($blogid = '1', $post_id = 0) {
	_deprecated_function( __FUNCTION__, '2.1.0', 'wp_get_post_categories()' );
	return wp_get_post_categories($post_id);
}