Create category term

//Initilize Plugin
if(!is_term("WP Videos", "category")){
$arg = array('description' => "Main category for all of the WP Video Player videos", 'parent' => 3);
$new_cat_id = wp_insert_term("WP Videos", "category", $arg);
}

0 Comments

You must be logged in to post a comment.