admin管理员组文章数量:1328037
By default, Wordpress shows admin toolbar to Administrator, Editor, or Author but not to Subscriber or unauthenticated visitors.
What determines whether admin toolbar is shown a logged-in user? I am wondering if it works based on Role, a specific Capability, or something else. I tried to dig in Wordpress core source code to find out but I could not get any clue.
By default, Wordpress shows admin toolbar to Administrator, Editor, or Author but not to Subscriber or unauthenticated visitors.
What determines whether admin toolbar is shown a logged-in user? I am wondering if it works based on Role, a specific Capability, or something else. I tried to dig in Wordpress core source code to find out but I could not get any clue.
Share Improve this question asked Jul 22, 2020 at 3:05 ronnefeldtronnefeldt 1155 bronze badges1 Answer
Reset to default 2The admin toolbar is displayed for all users, including Subscribers.
If it's not appearing on your site, then you are likely be using a plugin that changes this behaviour. For example, WooCommerce hides the admin bar from users who do not have the edit_posts
or manage_woocommerce
, capability. They have a support article on disabling this behaviour here.
Other plugins, such as membership plugins, might do something similar. You would need to check them individually.
本文标签: What determines whether admin toolbar is shown to a loggedin user
版权声明:本文标题:What determines whether admin toolbar is shown to a logged-in user? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742242551a2438923.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论