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_set_post_categories() | Set categories for a post. |
This function has been deprecated. Use wp_set_post_categories() instead.
Sets the categories that the post ID belongs to.
(int) (Optional) Not used
Default value: '1'
(int) (Required)
(array) (Optional)
Default value: array()
(bool|mixed)
File: wp-includes/deprecated.php
function wp_set_post_cats($blogid = '1', $post_ID = 0, $post_categories = array()) { _deprecated_function( __FUNCTION__, '2.1.0', 'wp_set_post_categories()' ); return wp_set_post_categories($post_ID, $post_categories); }
Version | Description |
---|---|
2.1.0 | This function has been deprecated. Use wp_set_post_categories() instead. |
1.0.1 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/wp_set_post_cats