Support » Plugin: Display WP Admin Pages in the Frontend - WP Frontend Admin » Can the admin menu be removed by PHP instead of CSS?

  • Resolved menathor

    (@menathor)


    Hi guys,

    When you display pages on the front end, are you hiding the admin menu with CSS? I’m looking for a way to prevent the menu from loading at all to improve performance. Do you have a code snippet which will unhook or dequeue the admin menu that you could share?

    ThankS!

Viewing 1 replies (of 1 total)
  • Plugin Author Jose Vega

    (@josevega)

    Hi.

    What you want is not possible. WP renders the menu html always and we can’t turn it off.

    CSS is the only way to remove it.

    Besides, it wouldn’t help, rendering the menu links (html) is very fast.

Viewing 1 replies (of 1 total)
  • The topic ‘Can the admin menu be removed by PHP instead of CSS?’ is closed to new replies.