How to remove the Uncategorized category in WP?

After updating WooCommerce appeared in the Uncategorized category how to remove it? To remove it, like any other is impossible, since there is no checkbox next to its name in the list.
It is necessary to remove or at least hide to it in the public section was not displayed.
June 8th 19 at 17:21
4 answers
June 8th 19 at 17:23
Assign a different category as the main default and then there will be a checkbox to delete Uncategorized. This category is displayed in the front-end only if there is a product or record, etc.
June 8th 19 at 17:25
Rename it to desired.
Or: Settings - writing - get her out of there and then will give you to remove. And while it is listed as default - cannot be deleted - Jarvis.McCullou commented on June 8th 19 at 17:28
how to get her out of there? you can only switch on the articles, but it does not help to remove this category. where did it come from anyway? before the upgrade it was not. - Dagmar5 commented on June 8th 19 at 17:31
I just checked - removing it from "writing" - there is an option removal of the headings.

So you're talking about something else. But without the Scrin do not understand that you do not give where to remove.
Try to Express your problem completely. - Jarvis.McCullou commented on June 8th 19 at 17:34
settings - writing it here? prntscr.com/i85149

trying to remove the usual place - in the list of categories prntscr.com/i853rj - Dagmar5 commented on June 8th 19 at 17:37
writing this here?

Yes.
I just have removed first by removing the Writing - Jarvis.McCullou commented on June 8th 19 at 17:40
how put it in "writing" ? - Dagmar5 commented on June 8th 19 at 17:43
It's the usual select - choose a different default category (you also there are more categories? If only one then of course you will not be able to remove your Uncategorized there). - Jarvis.McCullou commented on June 8th 19 at 17:46
It's the usual select - choose a different default category
where did you do it? can the screenshot? and what you have chosen as default? - Dagmar5 commented on June 8th 19 at 17:49
I've told you everything. The screenshot is the same as you - there and done. - Jarvis.McCullou commented on June 8th 19 at 17:52
I chose a different default category. it didn't help to remove the Uncategorized category. how so? - Dagmar5 commented on June 8th 19 at 17:55
probably a curse... I have shared with you their experience. So you do not fit and need to dig deeper.
Install a clean WordPress and check my words - Jarvis.McCullou commented on June 8th 19 at 17:58
You need to create a new ruble in the records of the ruble to create a new one. And the ruble Uncategorized to delete all the records. You can then change the choice in "writing". There, change the "Primary category" and "Category default for the publication in the mail." After that you can delete it. But displayed on the website of the new ruble))) finally decided: I Have a plugin "YITH WooCommerce Category Accordion", removed a Daw and all became norms.
5a9a5f278590b731917218.jpeg - nikita.Stracke commented on June 8th 19 at 18:01
June 8th 19 at 17:27
Paste the code snippet into the file functions.php your theme:

<?php // Mind this opening php tag
/**
 * Remove Categories from WooCommerce Product Category Widget
*
 * @author Ren Ventura
*/
//* Used when the widget is displayed as a dropdown
add_filter( 'woocommerce_product_categories_widget_dropdown_args', 'rv_exclude_wc_widget_categories' );
//* Used when the widget is displayed as a list
add_filter( 'woocommerce_product_categories_widget_args', 'rv_exclude_wc_widget_categories' );
rv_exclude_wc_widget_categories function( $cat_args ) {
 $cat_args['exclude'] = array('55','68'); // here ID of your category
 return $cat_args;
}</property-->
June 8th 19 at 17:29
If the category page is derived using the shortcode, try this option [product_categories hide_empty="true"] where hide_empty="true" is responsible for hiding empty categories Uncategorized if is empty, it will not appear. If using the widget categories, there is a checkbox to hide empty categories. On the latest version of woocommerce has not tested, and the 3.2.6 version that works.

Find more questions by tags WordPress