Need WordPress Top Bar for Vendor

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!

Viewing 3 reply threads
  • Author
    Posts
    • #16992
      agoenui
      Participant

      Hello,

      I am using WordPress Topbar as navigation. But when user became Vendor, They cannot see the TopBar anymore. Would you like to help me how to solve this?

      Thank you

    • #16993
      WCFM Forum
      Keymaster

      Hi,

      Thanks for get in touch with us.

      I understand your requirement but multi-vendor plugins generally disable this for vendor users.

      But we can override that, here is simple code snippet for you, please add this in your “child theme’s functions.php”

      function habfna_disable_admin_bar() {
      	if( function_exists( 'wcfm_is_vendor' ) ) {
      		if( wcfm_is_vendor() ) {
      			add_filter( 'show_admin_bar', '__return_true' );
      		}
      	}
      }
      add_action( 'init', 'habfna_disable_admin_bar', 9 );

      Please know me is this resolve your issue or not!

      Thank You
      Shhiv

    • #17025
      agoenui
      Participant

      This works, thank you very much 😀

    • #17038
      Simha
      Guest

      Thanks for confirming me this. 🙂

Viewing 3 reply threads
  • The topic ‘Need WordPress Top Bar for Vendor’ is closed to new replies.