Remove store options for vendors

We're shifting our Forum based support to a more dedicated support system!

We'll be closing our Forum support from 10th June, 2020 and move to Email Support assistance.

  • If you are a WCFM premium add-ons user, contact us- here
  • Want to know more before buying our add-ons? Send Pre sale queries- here
  • If you are a WCFM free user, please open a support ticket at WordPress.org
  • For WCFM App related queries, reach us- here
From now the forum will be read-only!

Viewing 1 reply thread
  • Author
    Posts
    • #137819
      hasnainaly9
      Participant

      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.

    • #137942

      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.

Viewing 1 reply thread
  • You must be logged in to reply to this topic.