• Resolved aditta

    (@aditta)


    Send Users Email plugin dashboard can be accessed from Administrator account. But I want to give access to Shop Manager role too.

    Here are some demo-

    function add_theme_caps() {
    $role = get_role( ‘shop_manager’ );
    $role->add_cap( ‘edit_posts’ );
    $role->add_cap( ‘edit_others_posts’ );
    $role->add_cap( ‘edit_published_posts’ );
    $role->add_cap( ‘delete_published_posts’ );
    $role->add_cap( ‘delete_products’ );
    }
    add_action( ‘admin_init’, ‘add_theme_caps’);

Viewing 1 replies (of 1 total)
  • Plugin Contributor Suman Bhattarai

    (@metalfreek)

    I am considering a possibility for other roles who has WP Admin access to use the plugin as well besides Administrator. However this is still in planning phase and might take some time. Thanks.

Viewing 1 replies (of 1 total)
  • The topic ‘Access to Shop Manager’ is closed to new replies.