Title: Sub menu capabilities
Last modified: April 2, 2024

---

# Sub menu capabilities

 *  [Get Innovation Dev](https://wordpress.org/support/users/getinnovationdev/)
 * (@getinnovationdev)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/sub-menu-capabilities/)
 * Hello and thank you for this plugin.
 * Currently the Admin pages are available only for those with “manage_options” 
   capability. Can you allow us to filter this or to switch it to “[view_woocommerce_reports](https://woo.com/document/roles-capabilities/)”
   so a Shop Manager can access the report page? At this moment Shop Managers can’t
   access the pages – which is a bit awkward since they are Shop Managers.

Viewing 1 replies (of 1 total)

 *  Thread Starter [Get Innovation Dev](https://wordpress.org/support/users/getinnovationdev/)
 * (@getinnovationdev)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/sub-menu-capabilities/#post-17544102)
 * I was able to change the capabilities with this
 *     ```wp-block-code
       add_action( 'admin_menu', function(){
           remove_submenu_page('woocommerce', 'wccs');
           add_submenu_page( 'index.php', 'Customer Source', 'Customer Source', 'view_woocommerce_reports', 'wccs', array('WC_Customer_Source', 'display_main'), 9999 );
       }, 99999 );
       ```
   
 * I had to remove the sub menu and create it again with a different capability.
   I had to put it under Dashboard (index.php) because it doesn’t work if I try 
   to put it under Woocommerce tab using “woocommerce” as is currently in plugin.
   
   Now the report page is available for Shop Managers.

Viewing 1 replies (of 1 total)

The topic ‘Sub menu capabilities’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wc-customer-source.svg)
 * [Where Did You Hear About Us Checkout Field for WooCommerce](https://wordpress.org/plugins/wc-customer-source/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wc-customer-source/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wc-customer-source/)
 * [Active Topics](https://wordpress.org/support/plugin/wc-customer-source/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wc-customer-source/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wc-customer-source/reviews/)

## Tags

 * [capabilities](https://wordpress.org/support/topic-tag/capabilities/)

 * 2 replies
 * 1 participant
 * Last reply from: [Get Innovation Dev](https://wordpress.org/support/users/getinnovationdev/)
 * Last activity: [2 years, 1 month ago](https://wordpress.org/support/topic/sub-menu-capabilities/#post-17544102)
 * Status: not resolved