Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Ultimate › How could i hide the "Group Description" field of Add-ons?
- This topic has 4 replies, 2 voices, and was last updated 6 years, 5 months ago by
MOHO.
Viewing 4 reply threads
- AuthorPosts
- September 19, 2018 at 8:01 am #31998
- September 19, 2018 at 8:55 pm #32043
WCFM Forum
MemberHi,
Kindly add this code for the purpose –
add_filter( 'wcfm_product_manage_fields_wcaddons', function( $global_addon_fields ) { if( isset( $global_addon_fields['description'] ) ) { $global_addon_fields['description']['label_class'] = 'wcfm_custom_hide'; $global_addon_fields['description']['class'] = 'wcfm_custom_hide'; } return $global_addon_fields; });
Thank You
- September 20, 2018 at 1:01 am #32068
MOHO
ParticipantI try it, but it not work.
- September 20, 2018 at 4:23 am #32075
WCFM Forum
MemberHi,
Sorry, please use this code –
add_filter( 'wcfm_product_manage_fields_wcaddons', function( $global_addon_fields ) { if( isset( $global_addon_fields['_product_addons'] ) && isset( $global_addon_fields['_product_addons']['options'] ) && isset( $global_addon_fields['_product_addons']['options']['description'] ) ) { $global_addon_fields['_product_addons']['options']['description']['label_class'] = 'wcfm_custom_hide'; $global_addon_fields['_product_addons']['options']['description']['class'] = 'wcfm_custom_hide'; } return $global_addon_fields; });
Thank You
- September 20, 2018 at 5:02 am #32080
MOHO
ParticipantThanks it work.
Please close it.
- AuthorPosts
Viewing 4 reply threads
- The topic ‘How could i hide the "Group Description" field of Add-ons?’ is closed to new replies.