Rename Default Category (Uncategorized) Via a Function

I’m looking for a function to rename the default ‘Uncategorized’ category. The reason I need this is because I’m running a WordPress multi-site largely used by users with little technical knowledge and only allows the one, default category for their blog.

Related posts

1 comment

  1. I think wp_update_term should do the trick:

    wp_update_term(1, 'category', array(
      'name' => 'A Real Category Name',
      'slug' => 'real-category-name'
    ));
    

Comments are closed.