Hide Store List Banner and Store Banner Type
-
Hello,
I’d like to hide the Store List Banner Type and Store Banner Type drop-down fields on the store settings tab. I found this code but it doesn’t work for me. What can I do to prevent vendedor from showing up?
function wcfm_marketplace_settings_fields_2511_general( $general_fields, $vendor_id ) { if( isset( $general_fields['list_banner_type'] ) ) { $general_fields['list_banner_type']['class'] = 'wcfm_custom_hide'; $general_fields['list_banner_type']['label_class'] = 'wcfm_custom_hide'; } if( isset( $general_fields['banner_type'] ) ) { $general_fields['banner_type']['class'] = 'wcfm_custom_hide'; $general_fields['banner_type']['label_class'] = 'wcfm_custom_hide'; } return $general_fields; } //add_filter('wcfm_marketplace_settings_fields_general', 'wcfm_marketplace_settings_fields_2511_general', 50, 2 );
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Hide Store List Banner and Store Banner Type’ is closed to new replies.