Sets the categories that the post ID belongs to.
Description
See also
Parameters
$blogidintrequired- Not used
$post_idintrequired$post_categoriesarrayoptionalDefault:
array()
Source
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);
}
User Contributed Notes
You must log in before being able to contribute a note or feedback.