wp_get_post_cats()
Deprecated since 2.1.0. It is no longer supported and may be removed in future releases. Use wp_get_post_categories() instead.
Retrieves a list of post categories.
No Hooks.
Returns
Array.
Usage
wp_get_post_cats( $blogid, $post_id );
- $blogid(int)
- Not Used.
Default: '1' - $post_id(int)
- .
Notes
Changelog
| Since 1.0.1 | Introduced. |
| Deprecated since 2.1.0 | Use wp_get_post_categories() |
wp_get_post_cats() wp get post cats code WP 6.9
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);
}