Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WC Marketplace › Hide Elements
- This topic has 1 reply, 2 voices, and was last updated 4 years, 6 months ago by Sarmistha Chakraborty.
Viewing 1 reply thread
- AuthorPosts
- May 10, 2020 at 2:32 am #128979Ana Elise FerrariParticipant
Hi, I want to hide those fields of the Vendor Admin Page:
Store Banner Type
Mobile Banner
Store List Banner Type
Store List BannerCan you send me the functions code?
Regards
- May 11, 2020 at 12:05 pm #129453Sarmistha ChakrabortyMember
Hello,
add_filter('wcfm_marketplace_settings_fields_general', 'wcfm_marketplace_settings_fields_general_custom1105', 50, 2 ); function wcfm_marketplace_settings_fields_general_custom1105($general_fields,$vendor_id) { unset($general_fields['banner_type']); unset($general_fields['banner_slider']); unset($general_fields['banner_video']); unset($general_fields['list_banner_type']); unset($general_fields['list_banner']); unset($general_fields['list_banner_video']); unset($general_fields['mobile_banner']); return $general_fields; }
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/Ref:https://wclovers.com/forums/topic/hide-store-list-banner/
https://wclovers.com/forums/topic/want-to-hide-some-data/Thanks.
- AuthorPosts
Viewing 1 reply thread
- You must be logged in to reply to this topic.