wp_set_post_cats
wp_set_post_cats ( $blogid = '1', $post_id = 0, $post_categories = array() )
Parameters:- (int) blogid Not used
- (int) post_id
- (array) post_categories
See:Returns:Defined at: - Introduced in WordPress: 1.0.1
- Deprecated in WordPress: 2.1.0
Description
Sets the categories that the post ID belongs to.