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 1 reply thread
  • Author
    Posts
    • #38437
      javier
      Participant

      Hello friends, I found this code but I also want to hide the “bank address” field. What is the function? Thanks

      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

    • #38457
      WCFM Forum
      Member

      Hi,

      Please use this code –

      function wcfm_marketplace_settings_fields_2811_billing_bank( $bank_fields, $vendor_id ) {
      if( isset( $bank_fields['bank_addr'] ) ) {
      $bank_fields['bank_addr']['class'] = 'wcfm_custom_hide';
      $bank_fields['bank_addr']['label_class'] = 'wcfm_custom_hide';
      }
      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_2811_billing_bank', 50, 2 );

      Thank You

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