Hide membership on Vendor dashboard.

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 Product Vendors Hide membership on Vendor dashboard.

Viewing 8 reply threads
  • Author
    Posts
    • #33388
      johan
      Participant

      Hi I am not currently going to use Memberships and I am trying to hide memberships on the Vendor dashboard. Disable it or setting to ‘Admin only’ under Menu Manager on Admin does not hide it. Although I can hide it from Admin under Menu Manager>>Memberships. Please advise if I am doing something wrong.

      Ta
      Jay

    • #33406
      WCFM Forum
      Member

      Hi,

      You may off course hide this from Admin dashboard using “Menu manager”.

      For hide membership from vendor dashboard please add this line of code in your site –

      add_filter( 'wcfm_is_allow_profile_membership_upgrade', '__return_false' );

      Thank You

    • #33420
      johan
      Participant

      Thanks, but where must I add the code?

    • #33428
      WCFM Forum
      Member

      HI,

      Just add this in child theme’s functions.php

      Thank You

    • #33474
      johan
      Participant

      Hi, see attachments for both Admin settings and Vendor Dashboard after ‘Admin only’ setting had been chosen. It seems not to be working. Can you advise?

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

      Hi,

      Menu Manager is only for controlling menu items.

      DO you have added this to your site –

      add_filter( 'wcfm_is_allow_profile_membership_upgrade', '__return_false' );

      If not, please add and take a look.

      Thank You

    • #33479
      johan
      Participant

      I will add it and I am sure i will fix it but I am trying to understand the ‘controlling menu items’… If I set it to ‘admin only’ should it still be available/visible in the Vendor dashboard?

    • #33480
      johan
      Participant

      Thanks, works with child theme.

    • #33481
      WCFM Forum
      Member

      Great … you are welcome 🙂

Viewing 8 reply threads
  • The topic ‘Hide membership on Vendor dashboard.’ is closed to new replies.