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.




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

Default: 0

Default: array()

Code of wp set post cats: wp-includes/deprecated.php WP 5.2.1

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