Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › Product Vendors › Hide membership on Vendor dashboard.
- This topic has 8 replies, 2 voices, and was last updated 5 years, 6 months ago by WCFM Forum.
- AuthorPosts
- October 6, 2018 at 6:27 am #33388johanParticipant
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 - October 6, 2018 at 10:21 am #33406WCFM ForumKeymaster
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
- October 6, 2018 at 1:06 pm #33420johanParticipant
Thanks, but where must I add the code?
- October 6, 2018 at 4:40 pm #33428WCFM ForumKeymaster
HI,
Just add this in child theme’s functions.php
Thank You
- October 7, 2018 at 4:44 am #33474
- October 7, 2018 at 5:09 am #33478WCFM ForumKeymaster
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
- October 7, 2018 at 5:20 am #33479johanParticipant
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?
- October 7, 2018 at 5:28 am #33480johanParticipant
Thanks, works with child theme.
- October 7, 2018 at 6:07 am #33481WCFM ForumKeymaster
Great … you are welcome 🙂
- AuthorPosts
- The topic ‘Hide membership on Vendor dashboard.’ is closed to new replies.