wpseek.com
A WordPress-centric search engine for devs and theme authors



wp_get_post_cats › WordPress Function

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