Best Multi Vendor Marketplace Plugin for WordPress › Forums › Product Vendors › Hide membership on Vendor dashboard.
- This topic has 8 replies, 2 voices, and was last updated 6 years, 7 months ago by
WCFM Forum.
- AuthorPosts
- October 6, 2018 at 6:27 am #33388
johan
ParticipantHi 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 #33406
WCFM Forum
MemberHi,
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 #33420
johan
ParticipantThanks, but where must I add the code?
- October 6, 2018 at 4:40 pm #33428
WCFM Forum
MemberHI,
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 #33478
WCFM Forum
MemberHi,
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 #33479
johan
ParticipantI 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 #33480
johan
ParticipantThanks, works with child theme.
- October 7, 2018 at 6:07 am #33481
WCFM Forum
MemberGreat … you are welcome 🙂
- AuthorPosts
- The topic ‘Hide membership on Vendor dashboard.’ is closed to new replies.