WordPress at a glance
function is not described

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. Null. Nothing.

Usage

wp_set_post_cats( $blogid, $post_ID, $post_categories );
$blogid(int)
Not used
$post_ID(int)
-
$post_categories(array)
-

Notes

  • See: wp_set_post_categories()

Changelog

Since 1.0.1 Introduced.
Deprecated 2.1.0
Deprecated Use wp_set_post_categories()

Code of wp_set_post_cats() WP 5.7

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