Warning: This function has been deprecated. Use wp_get_post_categories() instead.

wp_get_post_cats( int $blogid = '1', int $post_ID )

Retrieves a list of post categories.

Description Description

See also See also

Top ↑

Parameters Parameters


(int) (Optional) Not Used

Default value: '1'


(int) (Required)

Top ↑

Return Return


Top ↑

Source Source

File: wp-includes/deprecated.php

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

Top ↑

Changelog Changelog

Version Description
2.1.0 Use wp_get_post_categories()
1.0.1 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.