Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Marketplace (WooCommerce Multivendor Marketplace) › hide bank fields
- This topic has 1 reply, 2 voices, and was last updated 5 years, 12 months ago by WCFM Forum.
- AuthorPosts
- November 28, 2018 at 2:51 am #38437javierParticipant
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 - November 28, 2018 at 7:11 am #38457WCFM ForumMember
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
- AuthorPosts
- The topic ‘hide bank fields’ is closed to new replies.