Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi,

    The “remove_submenu_page()” proposal doesn’t work because the poster in the old post put the code snippet in functions.php. I renamed my functions.php temporarily and the front end stopped working but the backend worked, so I deduce that functions.php is not run when the backend renders. I don’t know where you would put the “remove_submenu_page()” snippet.

    Instead I offer the solution of commenting out line 27
    // add_action( 'admin_menu', array( $this, 'settings_menu' ), 50 );
    in plugins/woocommerce/includes/admin/class-wc-admin-menus.php
    Suggestion works for me but is offered without warranty!

    Thread Starter bullseyedesigns

    (@bullseyedesigns)

    Thanks for the info. I will say that I have other “remove_submenu_page()” in my functions.php file, and they work fine, so this has to be a problem with the way WooCommerce is coded.

    As for your suggestion of commenting out line 27 etc. This only works until you update WooCommerce, then the files are reset with the update. But thanks anyway.

    Maybe somebody from WooCommerce would like to comment!!!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Hide WooCommerce Settings in admin panel’ is closed to new replies.