Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Marketplace (WooCommerce Multivendor Marketplace) › Remove store options for vendors
- This topic has 1 reply, 2 voices, and was last updated 4 years, 6 months ago by Sarmistha Chakraborty.
Viewing 1 reply thread
- AuthorPosts
- June 3, 2020 at 1:27 am #137819hasnainaly9Participant
Hello, Is there a way I can remove store banner type, store list banner type, mobile banner, and store list banner options for vendors. I only want banner and logo options to be visible to vendors.
Thanks. - June 3, 2020 at 12:39 pm #137942Sarmistha ChakrabortyMember
Hello,
add_filter('wcfm_marketplace_settings_fields_general', 'wcfm_marketplace_settings_fields_general_custom1804', 50, 2 ); function wcfm_marketplace_settings_fields_general_custom1804($general_fields,$vendor_id) { unset($general_fields['banner_type']); unset($general_fields['banner']); unset($general_fields['banner_video']); unset($general_fields['banner_slider']); unset($general_fields['mobile_banner']); unset($general_fields['list_banner_type']); unset($general_fields['list_banner']); unset($general_fields['list_banner_video']); 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/
Thanks.
- AuthorPosts
Viewing 1 reply thread
- You must be logged in to reply to this topic.