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:
  • (bool|mixed)
Defined at:

Description

Sets the categories that the post ID belongs to.

Related Functions

wp_get_post_cats, wp_set_post_tags, wp_set_post_terms, wp_set_post_categories, wp_get_post_tags

Top Google Results

User discussions

wpseek mobile