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.
Got solution, worked for me
https://gist.github.com/WillBrubaker/7edd45085b7666a13f53
<?php
/*
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 );