I retitled and moved the WooCommerce Products top-level menu to underneath the main WooCommerce tab with the following code:
$products = recursive_array_search_php_91365( 'Products', $menu );
unset ($menu[$products]);
add_submenu_page('woocommerce', 'Donation Options', 'Donation Options', 'manage_options, products', '/edit.php?post_type=product');
The recursive array search function is pulled from this page.
My custom user roles are created and managed through the User Role Editor plugin. The desired menu shows up for an administrator, but not for my custom user role. I checked and this user can access the page that is called back, so I'm not sure why it isn't be displayed in the menu.
Any ideas?