Extends custom product type from woocommerce

WooCommerce Multivendor Marketplace – Home Page Forums WCFM – Feature Request Extends custom product type from woocommerce

This topic contains 2 replies, has 2 voices, and was last updated by WCfM Forum WCfM Forum 3 days, 18 hours ago.

  • Author
    Posts
  • #81139
    Avatar
    jaliascv
    Participant

    Hi. is there any way the woocommerce custom product types are automatically loaded into wcfm ?

    thanks!

  • #81152
    Avatar
    jaliascv
    Participant

    hi i managed to add custom product type. but need to modify many files as the list array are mostly hardcoded. thanks!

  • #81713
    WCfM Forum
    WCfM Forum
    Keymaster

    Hi,

    No, you don not require to edit any core file.

    You may add new product type using this code snippet –

    add_filter( 'wcfm_product_types', function( $pro_types ) {
    	$pro_types['new_product'] = __( 'New Product', 'woocommerce' );
    	return $pro_types;
    }, 50 );

    Thank You

You must be logged in to reply to this topic.