Best Multi Vendor Marketplace Plugin for WordPress › Forums › WCFM › Virtual & Downloadable , checked and dissapear
- This topic has 3 replies, 2 voices, and was last updated 6 years ago by
WCFM Forum.
Viewing 3 reply threads
- AuthorPosts
- May 4, 2019 at 7:53 pm #60611
slipksizz
ParticipantHello everyone,
How to make when upload an item automatically check virtual & downloadable and hide them so the vendor can’t edit.
Thanks.
- May 5, 2019 at 5:09 pm #60739
WCFM Forum
MemberHi,
Please add this to your child theme’s functions.php –
add_filter( 'wcfm_product_manage_fields_general', function( $general_fields, $product_id, $product_type ) { if( isset( $general_fields['is_virtual'] ) ) { $general_fields['is_virtual']['dfvalue'] = 'enable'; $general_fields['is_virtual']['class'] = 'wcfm_custom_hide'; $general_fields['is_virtual']['desc_class'] = 'wcfm_custom_hide'; } if( isset( $general_fields['is_downloadable'] ) ) { $general_fields['is_downloadable']['dfvalue'] = 'enable'; $general_fields['is_downloadable']['class'] = 'wcfm_custom_hide'; $general_fields['is_downloadable']['desc_class'] = 'wcfm_custom_hide'; } return $general_fields; }, 50, 3 );
Thank You
- May 5, 2019 at 6:34 pm #60758
slipksizz
ParticipantThank you very much!
- May 5, 2019 at 8:53 pm #60783
WCFM Forum
MemberYou are welcome 🙂
- AuthorPosts
Viewing 3 reply threads
- The topic ‘Virtual & Downloadable , checked and dissapear’ is closed to new replies.