What permissions does a role need for the user to be assigned as the author of a post?

I have a Wordpress site with custom roles (except for administrator) and now wanted to create a role so that a user with

I have a Wordpress site with custom roles (except for administrator) and now wanted to create a role so that a user with this role can be manually assigned as the author of a post. I thus created a role which had all permissions checked in the "post" submenu, but none in the others (since this role is only there for this reason). A user that has this role assigned can now however still not be chosen as the author of a post, but only the ones with an administrator role. My question therefore is:

What permissions does a role need so that the user can be assigned as the author of a post? I would really like to not make this user an administrator

I have a Wordpress site with custom roles (except for administrator) and now wanted to create a role so that a user with this role can be manually assigned as the author of a post. I thus created a role which had all permissions checked in the "post" submenu, but none in the others (since this role is only there for this reason). A user that has this role assigned can now however still not be chosen as the author of a post, but only the ones with an administrator role. My question therefore is:

What permissions does a role need so that the user can be assigned as the author of a post? I would really like to not make this user an administrator

Share Improve this question edited Apr 1, 2019 at 17:45 Yato asked Mar 29, 2019 at 13:38 YatoYato 175 bronze badges 2
  • You can try wordpress' default editor role – Vishwa Commented Mar 29, 2019 at 15:40
  • Thank you for the suggestion; I have custom roles and cannot find the standard roles anymore, so I cannot asign the default editor role sadly – Yato Commented Apr 1, 2019 at 13:37
Add a comment  | 

1 Answer 1

Reset to default 0

You probably need to add 3 capabilities:

  • edit_published_posts
  • publish_posts
  • delete_published_posts

but at the very least, you need to add publish_posts as that is the capability WordPress uses to determine what users are shown in Authors drop-down.

Note: Changing capabilities is stored in the database so the recommendation is to modify these values via a plugin and only when the plugin is activated or deactivated rather than on every request.

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

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

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

关注微信