Support » Plugin: WooCommerce » Disabling the WC Extensions sub-menu

  • Resolved lifeforceinst


    I have a few customers who have asked in recent weeks can they have the WooCommerce Extensions sub-menu hidden. They have no need for this and have found it confusing.

    Is there a mechanism to make this work, as I have looked at using remove_action, Remove_submenu_page or remove_filter.


Viewing 3 replies - 1 through 3 (of 3 total)
  • You need

    add_action( 'admin_init', 'remove_woo_menu_items' );
    function remove_woo_menu_items() {
        remove_submenu_page( 'woocommerce','wc-addons' );

    This removes it for all users in the admin.

    Thank you – this worked perfectly.

    is there a repository where one can find all such useful hooks and pieces of information?

    You dont find, you devise it from the Woocommmerce code & docs. If you search for ready solutions, use Google 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Disabling the WC Extensions sub-menu’ is closed to new replies.