wp_get_post_cats

函数


wp_get_post_cats ( $blogid = '1', $post_ID = 0 )
参数
  • (int)
    $blogid
    Not Used
    Required:
    Default: ‘1’
  • (int)
    $post_ID
    Required:
返回值
  • (array)
相关
  • wp_get_post_categories()
定义位置
  • wp-includes/deprecated.php
    , line 747
引入
1.0.1
弃用
2.1.0

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);
}