Forum Replies Created
Viewing 1 post (of 1 total)
- AuthorPosts
- hectorParticipant
Hi,
I disabled Virtual and Downloadable with this code:
// START: Disable Virtual & Downloadable // From marketplace function disable_virtual_downloadable_support( $general_fields ) { if ( isset( $general_fields['is_virtual'] ) ) unset( $general_fields['is_virtual'] ); if ( isset( $general_fields['is_downloadable'] ) ) unset( $general_fields['is_downloadable'] ); return $general_fields; } add_filter( 'wcfm_product_manage_fields_general', 'disable_virtual_downloadable_support' ); // From general Woocommerce add_filter( 'product_type_options', function( $options ) { // remove "Virtual" checkbox if( isset( $options[ 'virtual' ] ) ) { unset( $options[ 'virtual' ] ); } // remove "Downloadable" checkbox if( isset( $options[ 'downloadable' ] ) ) { unset( $options[ 'downloadable' ] ); } return $options; } );
- AuthorPosts
Viewing 1 post (of 1 total)