Viewing 8 replies - 1 through 8 (of 8 total)
  • Yes,
    this is the code

    remove_submenu_page('woocommerce', 'woocommerce_settings');

    Hi,

    It doesn’t work for me. I put it at the end of the functions.php file in my theme’s folder, but it doesn’t work.

    For example, I’ve tried to hide the whole woocommerce menu with this:
    remove_menu_page(‘woocommerce’);

    And it works. But your linecode doesn’t work for me. Any idea?

    Thanks in advance.

    despachotres,

    Try

    // Remove Menu Items
    add_action( 'admin_menu', 'remove_menu_pages', 999);
    function remove_menu_pages() {
    $remove_submenu = remove_submenu_page('woocommerce', 'woocommerce_settings');
    }

    Hi rocboy001,

    You’re right. This is the code I found myself working a few days ago.

    add_action( 'admin_menu', 'my_remove_menu_pages', 999 );
    function my_remove_menu_pages() {
    remove_submenu_page('woocommerce', 'woocommerce_settings');
    remove_submenu_page('woocommerce', 'woocommerce_status');
    }

    Thanks for your answer.

    Hi, exactly what I wanted, tried both versions immediately above and put in at the end of the functions.php file in my theme’s folder. Nothing.

    It’d be great as well to make it only available to the Administrator and hide for all others. I think it would follow this format, but any pointers to make the whole thing work would be great.

    // remove for all but administrator
    if ( ! current_user_can(‘manage_options’) ) {
    add_action( ‘admin_menu’, ‘my_remove_menu_pages’, 999 );
    function my_remove_menu_pages() {
    remove_submenu_page(‘woocommerce’, ‘woocommerce_settings’);
    remove_submenu_page(‘woocommerce’, ‘woocommerce_status’);
    }}

    Lins

    You can edit the WP admin navigation however you like (and separately for any WP role) using Admin Menu Editor by Janie Elsts.

    There is a free version in the WP plugin repository, but the paid version adds ability to change manu names and move things from top leve to the submenu — basically design your own WP admin menus however you want.

    Free version: http://wordpress.org/plugins/admin-menu-editor/
    Pro version: http://adminmenueditor.com/

    Thank you very much. I really wanted to do without another plugin though, and above code seems so close… Yet so far. Anybody see what I’m doing wrong? Lins

    Hi Guys!

    I am desperately trying to create a Admin user role for a Web Designer however I do not want this user to have access to Jet Pack or the Woo commerce Orders info.

    Basically sales data (customer name, email, physical address, sales amount etc) is private and I don’t want it accessible to a web designer role. However I need to create a user role for the web designer so that they can edit our word press theme and install plugins etc.

    PLEASE help me out here!!

    Thanks a lot

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