hide bank fields

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 3 reply threads
  • Author
    Posts
    • #35584
      LeonardoAP
      Guest

      hi,

      Im trying to hide some bank fields by functions.php. The fields that i want to hide are
      ROUTE
      IBAN
      SWIFT
      IFSC

      here you have an answear
      https://wclovers.com/forums/topic/delete-field-from-vendor-registration-form/

      but i dont know the instances that i have to use

      thanks

    • #35592
      WCFM Forum
      Member

      Hi,

      Kindly add this code to your functions.php –

      function wcfm_marketplace_settings_fields_0211_billing_bank( $bank_fields, $vendor_id ) {
      	if( isset( $bank_fields['routing_number'] ) ) {
      		$bank_fields['routing_number']['class'] = 'wcfm_custom_hide';
      		$bank_fields['routing_number']['label_class'] = 'wcfm_custom_hide';
      	}
      	if( isset( $bank_fields['iban'] ) ) {
      		$bank_fields['iban']['class'] = 'wcfm_custom_hide';
      		$bank_fields['iban']['label_class'] = 'wcfm_custom_hide';
      	}
      	if( isset( $bank_fields['swift'] ) ) {
      		$bank_fields['swift']['class'] = 'wcfm_custom_hide';
      		$bank_fields['swift']['label_class'] = 'wcfm_custom_hide';
      	}
      	if( isset( $bank_fields['ifsc'] ) ) {
      		$bank_fields['ifsc']['class'] = 'wcfm_custom_hide';
      		$bank_fields['ifsc']['label_class'] = 'wcfm_custom_hide';
      	}
      	return $bank_fields;
      }
      add_filter('wcfm_marketplace_settings_fields_billing_bank', 'wcfm_marketplace_settings_fields_0211_billing_bank', 50, 2 );

      Thank You

    • #35802
      leonardoap
      Participant

      thanks, but you delay a lot the response.. and I found a way to do it, by the way some fields of other forms have no way of filtering them since they do not have the add_filter option in the field declaration like

      $WCFM->wcfm_fields->wcfm_generate_form_field( array(
      “locale” => array(‘label’ => __(‘Language’, ‘wc-frontend-manager’) , ‘type’ => ‘select’, ‘options’ => $list_laguages, ‘class’ => ‘wcfm-select wcfm_ele’, ‘label_class’ => ‘wcfm_title wcfm_ele’, ‘value’ => $locale )
      ) );

      it on wcfm-view-profile.php line 259

    • #35880
      WCFM Forum
      Member

      HI,

      I had replied on same day in few hours!

      Anyway, we will add filter for language filed – https://ibb.co/bCaWhq

      Thank You

Viewing 3 reply threads
  • The topic ‘hide bank fields’ is closed to new replies.