How could i hide some option from "Add-ons" tab of product?

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 How could i hide some option from "Add-ons" tab of product?

Tagged: 

Viewing 3 reply threads
  • Author
    Posts
    • #31005
      MOHO
      Participant

      Some option i no use.

      How could i hide them at my child theme?

      thanks

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

      Hi,

      Off course it’s possible to hide some options.

      Please know me those options and I will give you that custom code to you.

      Thank You

    • #31017
      MOHO
      Participant

      I only need “checkboxs” and “select box” option.

      Other options i want to hide, thanks.

    • #31024
      WCFM Forum
      Member

      Hi,

      Please use this code for the purpose –

      add_filter( 'wcfm_wcaddon_group_types', function( $field_groups ) {
        if( isset( $field_groups['custom_price'] ) ) unset( $field_groups['custom_price'] );
        if( isset( $field_groups['input_multiplier'] ) ) unset( $field_groups['input_multiplier'] );
        if( isset( $field_groups['custom_textarea'] ) ) unset( $field_groups['custom_textarea'] );
        if( isset( $field_groups['custom'] ) ) unset( $field_groups['custom'] );
        if( isset( $field_groups['custom_email'] ) ) unset( $field_groups['custom_email'] );
        if( isset( $field_groups['custom_letters_only'] ) ) unset( $field_groups['custom_letters_only'] );
        if( isset( $field_groups['custom_letters_or_digits'] ) ) unset( $field_groups['custom_letters_or_digits'] );
        if( isset( $field_groups['custom_digits_only'] ) ) unset( $field_groups['custom_digits_only'] );
        if( isset( $field_groups['file_upload'] ) ) unset( $field_groups['file_upload'] );
        if( isset( $field_groups['radiobutton'] ) ) unset( $field_groups['radiobutton'] );
      	return $field_groups;
      });

      Thank You

Viewing 3 reply threads
  • The topic ‘How could i hide some option from "Add-ons" tab of product?’ is closed to new replies.