How could i hide the "Group Description" field of Add-ons?

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!

Multi Vendor Marketplace Plugin | WCFM Marketplace Forums WCFM – Ultimate How could i hide the "Group Description" field of Add-ons?

Viewing 4 reply threads
  • Author
    Posts
    • #31998
      MOHO
      Participant

      I check, and the “Group Description” of Add-ons no use at frontend.

      So could i hide this field?

      thanks.

      Attachments:
      You must be logged in to view attached files.
    • #32043
      WCFM Forum
      Member

      Hi,

      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

    • #32068
      MOHO
      Participant

      I try it, but it not work.

    • #32075
      WCFM Forum
      Member

      Hi,

      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

    • #32080
      MOHO
      Participant

      Thanks it work.

      Please close it.

Viewing 4 reply threads
  • The topic ‘How could i hide the "Group Description" field of Add-ons?’ is closed to new replies.