wp_set_post_cats()WP 1.0.1

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

Sets the categories that the post ID belongs to.

No Hooks.

Return

true|false|Mixed.

Usage

wp_set_post_cats( $blogid, $post_ID, $post_categories );
$blogid(int)
Not used
Default: '1'
$post_ID(int)
-
$post_categories(array)
-
Default: array()

Notes

Changelog

Since 1.0.1 Introduced.
Deprecated 2.1.0
Deprecated Use wp_set_post_categories()

Code of wp_set_post_cats() WP 6.0

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