• Resolved Sajid Manzoor

    (@sajiddesigner)


    hello

    I have created a new user role in WordPress.

    `add_role( ‘rider’, __(‘Taxi Rider’ ),
    array(
    ‘read’ => true, // true allows this capability
    ‘edit_posts’ => true, // Allows user to edit their own posts
    ‘edit_pages’ => false, // Allows user to edit pages
    ‘edit_others_posts’ => false, // Allows user to edit others posts not just their own
    ‘create_posts’ => true, // Allows user to create new posts
    ‘manage_categories’ => false, // Allows user to manage post categories
    ‘publish_posts’ => false, // Allows the user to publish, otherwise posts stays in draft mode
    ‘edit_themes’ => false, // false denies this capability. User can’t edit your theme
    ‘install_plugins’ => false, // User cant add new plugins
    ‘update_plugin’ => false, // User can’t update any plugins
    ‘update_core’ => false, // user cant perform core updates
    ‘manage_woocommerce’ => true,
    //’read_shop_order’=>true
    )
    );
    `

    I want this user to access and view all Woo-commerce orders only.

    Can any body confirm, how can i do this. I don’t want to use any other Role Manager Plugin, as i don’t like using additional plugins for small & simple things .

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Assign customer rights to a new User Role in WooCommrce’ is closed to new replies.