Hide Elements

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
    • #128979
      Ana Elise Ferrari
      Participant

      Hi, I want to hide those fields of the Vendor Admin Page:

      Store Banner Type
      Mobile Banner
      Store List Banner Type
      Store List Banner

      Can you send me the functions code?

      Regards

    • #129453

      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.

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