Support » Plugin: Members - Membership & User Role Editor Plugin » Remove Access to WooCommerce Settings

  • Resolved jawad96


    Hi there,

    I was wondering if it is possible to allow access to WooCommerce Order but not to ‘Settings’, ‘System Status’ and ‘Add-ons’? If I uncheck ‘manage_woocommerce’ then the user loses access to the WordPress Dashboard.

    Many Thanks,

Viewing 5 replies - 1 through 5 (of 5 total)
  • I have the same issue.

    You need to post this in the WooCommerce forums. Members just gives you the ability to assign caps. It doesn’t determine what those caps are. They are determined by WooCommerce.

    Thanks, I’ll look into it.

    I have the same issue

    Got solution, worked for me

    Don’t copy the opening php tag

    Removes submenu items from WooCommerce menu for ‘Shop Managers’
    available submenu slugs are:
    wc-addons – the Add-ons submenu
    wc-status – the System Status submenu
    wc-reports – the Reports submenu
    edit.php?post_type=shop_order – the Orders submenu
    edit.php?post_type=shop_coupon – the Coupons submenu

    Shop Managers lack the capability of ‘update_core’, so remove based on that capability

    function wooninja_remove_items() {
    $remove = array( ‘wc-settings’, ‘wc-status’, ‘wc-addons’, );
    foreach ( $remove as $submenu_slug ) {
    if ( ! current_user_can( ‘update_core’ ) ) {
    remove_submenu_page( ‘woocommerce’, $submenu_slug );

    add_action( ‘admin_menu’, ‘wooninja_remove_items’, 99, 0 );

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Remove Access to WooCommerce Settings’ is closed to new replies.