• Resolved Kafi

    (@shozon)


    Hi,

    i want to remove snippet settings in woocommerce dashboard side bar if user as shop manager only access snippet plugin if user Admin Please help us with setting or code.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Shea Bunge

    (@bungeshea)

    You can use the code_snippets_cap filter to control who has access to the Snippets menu:

    add_filter( 'code_snippets_cap', function () {
        return 'manage_woocommerce';
    }, 10, 0 );
    Thread Starter Kafi

    (@shozon)

    This code not working for me, Can you share proper code I need to hide this for Shop Manager So please send a code for hide only shop manager user role

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Need to remove snippet settings top shop manager’ is closed to new replies.