WordPress at a glance
function is not described

wp_set_post_cats() WP 1.0.1

Deprecated in Use wp_set_post_categories(). It is no longer supported and can be removed in future releases. It is recommended to replace this function with the same one.

Sets the categories that the post id belongs to.

  • See: wp_set_post_categories()

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)

Default: 0
$post_categories(array)

Default: array()

Code of wp set post cats: wp-includes/deprecated.php VER 5.0.3

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