Change WordPress user roles and capabilities › Forums › Restrict or Permit access inside WordPress – how to › add_menu_page › Reply To: add_menu_page
14/04/2021 at 07:17
#7534
Keymaster
Hi,
Replace ‘administrator’ role ID at the add_menu_page() call with ‘manage_woocommerce’ user capability, which is available by default for the administrator and shop_manager roles only.