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_set_post_lock

Top Google Results

User discussions

wpseek mobile