A WordPress-centric search engine for devs and theme authors



wp_get_post_cats ›

Since1.0.1
Deprecated2.1.0
wp_get_post_cats ( $blogid = '1', $post_ID = 0 )
Parameters: (2)
  • (int) $blogid Not Used
    Required: No
    Default: '1'
  • (int) $post_ID
    Required: No
    Default:
See:
Returns:
  • (array)
Defined at:
Codex:

Retrieves a list of post categories.



Source

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