customization - Security Issues with custom user role or changing core role capabilities?

I have a scenario where I need a editor like role but with extended capabilities where they can access woocommerce order

I have a scenario where I need a editor like role but with extended capabilities where they can access woocommerce orders,products and user page. If I would to create a custom role or change the core editor role with these extended capabilities, will there be any security issue in the site or will there be a code break in the site when i'm upgrading wordpress version?

I have a scenario where I need a editor like role but with extended capabilities where they can access woocommerce orders,products and user page. If I would to create a custom role or change the core editor role with these extended capabilities, will there be any security issue in the site or will there be a code break in the site when i'm upgrading wordpress version?

Share Improve this question edited Jun 7, 2019 at 10:00 Amy asked Jun 7, 2019 at 9:37 AmyAmy 32 bronze badges
Add a comment  | 

2 Answers 2

Reset to default 0

Modifying the editor role by adding new capabilities will grant users editor capabilities plus these new capabilities. As long as you're comfortable with that level of access, there aren't additional security concerns.

If you want to create a new role which is what I recommend for this scenario, you can craft the capabilities according to your needs and only grant the capabilities you want these users to have.

The only concerns I would have with updates is if the core WordPress editor role were to change in the future.

You can use Advanced Access Manager Plugin https://wordpress/plugins/advanced-access-manager/ works user level based capabilities from wp-admin dashboard it's works woocommerce also.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745426934a4627222.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信