Uses
Uses | Description |
---|---|
wp-includes/functions.php: _deprecated_function() | Mark a function as deprecated and inform when it has been used. |
wp-includes/post.php: wp_get_post_categories() | Retrieve the list of categories for a post. |
This function has been deprecated. Use wp_get_post_categories() instead.
Retrieves a list of post categories.
(int) (Optional) Not Used
Default value: '1'
(int) (Required)
(array)
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); }
Version | Description |
---|---|
2.1.0 | Use wp_get_post_categories() |
1.0.1 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_get_post_cats