Support

Search results for ""

Sorry, no results found. Perhaps you would like to search the documentation?
All Topics
Antonio Miguel Soriano Moncho

Function to deactivate column sets or complete tables.

I noticed that when you have WooCommerce installed, admin columns Pro activates a CPT called products variation where it shows a column of all variable products and their ids.
I could find out that with the filter woocommerce_register_post_post_type_product_variation I can deactivate this CPT but, taking into account that it is a CPT set by the plugin Admin columns, I think there should be an option to completely disable these CPTs or tables.
Let’s see if they can put a function to deactivate it, this and others that are automatically installed when activating the plugin.
Thanks Translated with http://www.DeepL.com/Translator (free version)

1 year, 7 months ago
Tobias Schutter
Developer

Hi Antonio,

The Product Variations post type is not created by us but comes with WooCommerce itself. Our plugin only makes it visible in the main menu.

If you want to disable this menu, you can add the following filter to your theme’s functions.php:

add_filter( 'acp/wc/show_product_variations', '__return_false' );
1 year, 7 months ago

You must be logged in to reply to this topic.