WordPress at a glance
function is not described

wp_get_post_cats() WP 1.0.1

Deprecated in 2.1.0. It is no longer supported and can be removed in future releases. Use wp_get_post_categories() instead.

Retrieves a list of post categories.

  • See: wp_get_post_categories()

No Hooks.




wp_get_post_cats( $blogid, $post_ID );
Not Used
Default: '1'

Default: 0

Code of wp get post cats: wp-includes/deprecated.php WP 5.2.2

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