Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #7531
    zilabs
    Participant

    Hi,

    I made plugin and added a menù

    add_menu_page('inventario', 'inventario', 'administrator', 'inventario', 'inventario');

    How can I show for shop_manager role?

    Thanks

    #7534
    Vladimir
    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.

    #7535
    zilabs
    Participant

    Hi,

    I solved, thanks.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.