Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WC Vendors › Hide customer support and dashboard
- This topic has 5 replies, 2 voices, and was last updated 4 years, 9 months ago by vlasovdmitri.
- AuthorPosts
- March 16, 2020 at 6:57 pm #111847vlasovdmitriParticipant
Hello.
I want to hide the following pages from vendors:
div: id=”wcfm_settings_form_customer_support_head”
div: id=”sm_profile_form_social_head” url = /store-manager/profile/#sm_profile_form_social_headurl = /store-manager/knowledgebase/
url = /store-manager/ - March 17, 2020 at 11:58 am #111923Sarmistha ChakrabortyMember
Hello,
add_filter('wcfm_is_allow_knowledgebase','fn_only_for_admin_wcfm_is_allow_knowledgebase'); function fn_only_for_admin_wcfm_is_allow_knowledgebase($bool) { $userid = get_current_user_id(); if(wcfm_is_vendor($userid)) { return false; } else { return true; } } add_filter('wcfm_is_allow_social_profile','__return_false');
Add this code to your child theme’s functions.php
In case you do not have child theme then add code using this plugin – https://wordpress.org/plugins/code-snippets/Thanks.
- March 17, 2020 at 1:47 pm #111949vlasovdmitriParticipant
Thanks. That is, in the settings there are no such options for disabling this data?
- March 17, 2020 at 2:19 pm #111953vlasovdmitriParticipant
I also want to hide it:
– Facebook Setup
– Twitter Setup
– settings сustomer support
Thanks! - March 17, 2020 at 6:45 pm #111990Sarmistha ChakrabortyMember
Hello,
add_filter('wcfm_is_allow_customer_support_settings','__return_false'); add_filter('wcfm_is_allow_vendor_seo_facebook','__return_false'); add_filter('wcfm_is_allow_vendor_seo_twitter','__return_false');
Add this code to your child theme’s functions.php
In case you do not have child theme then add code using this plugin – https://wordpress.org/plugins/code-snippets/Thanks.
- March 17, 2020 at 7:19 pm #112002vlasovdmitriParticipant
Wery well. TY 🙂
- AuthorPosts
- You must be logged in to reply to this topic.