hide wcfmmenu in adminbar

We're shifting our Forum based support to a more dedicated support system!

We'll be closing our Forum support from 10th June, 2020 and move to Email Support assistance.

  • If you are a WCFM premium add-ons user, contact us- here
  • Want to know more before buying our add-ons? Send Pre sale queries- here
  • If you are a WCFM free user, please open a support ticket at WordPress.org
  • For WCFM App related queries, reach us- here
From now the forum will be read-only!

Multi Vendor Marketplace Plugin | WCFM Marketplace Forums WCFM hide wcfmmenu in adminbar

Viewing 1 reply thread
  • Author
    Posts
    • #18022
      info17
      Participant

      hi again:)
      i like to hide the “wcfm” menu in adminbar, see printscreen.

      This one works fine to hide in adminbar on frontend i dont see the menu

      div.wcfm-admin-menu-head {
      display: none !important;
      }

      but when admin is in backend the menu is here again, i try this css to hide WCFM menu in backend but not working, can you help me with this?
      div.wp-admin-bar-wcfm-menu {
      display: none !important;
      }

      Attachments:
      You must be logged in to view attached files.
    • #18024
      WCFM Forum
      Keymaster

      Hi,

      Kindly use this PHP code instead of CSS for the purpose –

      function wcfm_admin_bar_remove_menu() {
      global $wp_admin_bar;
      $wp_admin_bar->remove_menu( ‘wcfm-menu’ );
      }
      add_action( ‘admin_bar_menu’, ‘wcfm_admin_bar_remove_menu’, 110 );

      Thank You

Viewing 1 reply thread
  • The topic ‘hide wcfmmenu in adminbar’ is closed to new replies.