title: Add a new product type in Woocommerce 3
body: <p>In Woocommerce, I have created a custom product type <code>live_stream</code>. </p>
  
  <p>But when I create a new product within this custom type and I publish it, the product remains a "simple product" and doesn't get the <code>live_stream</code> custom type set for it. </p>
  
  <p>What I am doing wrong? How to make that custom product type functional?</p>
  
  <p>Here is my code</p>
  
  <pre><code>function wpstream_register_live_stream_product_type() {
      class Wpstream_Product_Live_Stream extends WC_Product {
          public function __construct( $product ) {
  
              $this-&gt;product_type = 'live_stream';
              parent::__construct( $product );
  
          }
  
          public function get_type() {
              return 'live_stream';
          }
      }
  }
  
  add_action( 'init', 'wpstream_register_live_stream_product_type' );
  
  function wpstream_add_products( $types ){
      $types[ 'live_stream' ]             = __( 'Live Channel','wpestream' );
      return $types;
  }
  add_filter( 'product_type_selector', 'wpstream_add_products' );
  </code></pre>