WPDev.one
Core Function
View Source on Trac ↗

wp_set_post_cats()

wp_set_post_cats( mixed $blogid = '1', mixed $post_id = 0, mixed $post_categories = array() )

Sets the categories that the post ID belongs to.

Parameters 2 required

Name / Type Description
$blogid
int

Not used

int

$post_id

Required
array

$post_categories

Required

Return Value

((bool)
| mixed)

Function Information

Since Version
1.0.1
Source File
wp-includes/deprecated.php
Advertisement