Can you please direct me to where I can find the info on how to addmenu at back-end for a particular user to only this plugin. I have some hooks in my function.php blocking users to all the menus, but I would like to give access to this plugin only.
I have the following in my function:
remove_submenu_page( ‘woocommerce’, ‘wc-reports’ );
remove_submenu_page( ‘woocommerce’, ‘wc-settings’ );
remove_submenu_page( ‘woocommerce’, ‘wc-status’ );
remove_submenu_page( ‘woocommerce’, ‘wc-addons’ );
Everything is fine, but I cannot hide the main woocommerce order page. I was thinking to maybe hide the woocommerce completely and move your plugin page out of woocommerce and give access to that menu only.
Currently the menu will show for users that have the capabilities of “manage_woocommerce”. There are plenty of ways that I could see you can only show the menu to certain users but it will require you to modify the core of the plugin (not recommended).
With this said, a good place to start would be on line 27 of /admin/admin-options.php 😉
Viewing 1 replies (of 1 total)
The topic ‘Access in backend’ is closed to new replies.