Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM › How could i hide some option from "Add-ons" tab of product?
Tagged: Add-ons
- This topic has 3 replies, 2 voices, and was last updated 6 years, 2 months ago by WCFM Forum.
Viewing 3 reply threads
- AuthorPosts
- September 7, 2018 at 5:43 am #31005
- September 7, 2018 at 6:08 am #31007WCFM ForumMember
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
- September 7, 2018 at 7:32 am #31017MOHOParticipant
I only need “checkboxs” and “select box” option.
Other options i want to hide, thanks.
- September 7, 2018 at 8:05 am #31024WCFM ForumMember
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
- AuthorPosts
Viewing 3 reply threads
- The topic ‘How could i hide some option from "Add-ons" tab of product?’ is closed to new replies.