TransWikia.com

What determines whether admin toolbar is shown to a logged-in user?

WordPress Development Asked by ronnefeldt on November 17, 2021

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.

One Answer

The 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.

Answered by Jacob Peattie on November 17, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP