To handle user role permissions - I decided that not all of 50 users should have Administrative roles - Most of our user are "Editors" and so I switched them from an Administrative role to Editor.

Problem now is that the Editor users don't have access to the top tool bar. (They had access to it when they are an Administrator role).

What I tried so far

  • I made sure that " Show Toolbar when viewing site " has been checked.
  • I disabled all of the plugins in a staging env until the site crashed.
  • Switched to a new theme (and it worked)

Any troubleshooting ideas would be most welcome

Also - Is there any php documentation that pertains to this feature? How would one insure that users have access to the top admin tool bar when developing a theme with php?

  • you're sure editors have permission to do anything with the post that's missing the admin bar?
    – vancoder
    Jun 9, 2021 at 16:00
  • if this is a third-party theme, this question will be out of scope here. Is it?
    – vancoder
    Jun 9, 2021 at 16:01
  • If it worked when you switched theme then there's something in your theme that's causing it. Without being able to see the code (although a full theme audit is well out of scope), the best anyone could offer is to suggest speaking to the theme author. Jun 9, 2021 at 16:52
  • 1
    "How would one insure that users have access to the top admin tool bar when developing a theme with php?" There's no reason the toolbar would be hidden from just Editors by the theme unless it was deliberately coded to do so. Jun 9, 2021 at 16:52

1 Answer 1


Looks like i found the piece of code causing the issue :

function remove_admin_bar() {

if (! current_user_can('administrator', 'editor') && !is_admin() && !is_editor()) { show_admin_bar(false); } } add_action('after_setup_theme', 'remove_admin_bar');

I switched show_admin_bar(false);



Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.