Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Marketplace (WooCommerce Multivendor Marketplace) › hide bank fields
- This topic has 3 replies, 3 voices, and was last updated 6 years ago by WCFM Forum.
- AuthorPosts
- November 2, 2018 at 12:14 pm #35584LeonardoAPGuest
hi,
Im trying to hide some bank fields by functions.php. The fields that i want to hide are
ROUTE
IBAN
SWIFT
IFSChere 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
- November 2, 2018 at 1:28 pm #35592WCFM ForumMember
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
- November 5, 2018 at 1:00 pm #35802leonardoapParticipant
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
- November 6, 2018 at 5:33 am #35880WCFM ForumMember
HI,
I had replied on same day in few hours!
Anyway, we will add filter for language filed – https://ibb.co/bCaWhq
Thank You
- AuthorPosts
- The topic ‘hide bank fields’ is closed to new replies.