title: Add custom tab in admin woocommerce product
body: <p>I am trying to get a custom tab added in woocommerce admin panel for the products section but it's not showing up. Can someone steer me in the right direction? I'm trying to do it as a class.</p>
  
  <pre><code>&lt;?php
  /*
      Plugin Name: Cdog Woocomerce Product Options
      Description: Allow a customer to order several different options of one product under one line item.
      Version: 1.0
      Author: Clint Chaney
  */
  
  class cdog_product_options
  {
  
      public function __construct()
      {
          add_action( 'woocommerce_product_write_panel_tabs', array( &amp;$this, 'create_admin_tab' ) );
      }
  
      /* this creates the tab in the products section in the admin panel */
      public function create_admin_tab()
      {
          ?&gt;
          &lt;li class="cdog_product_options_tab"&gt;&lt;a href="#cdog_product_options"&gt;&lt;?php _e('Product Options', 'woocommerce'); ?&gt;&lt;/a&gt;&lt;/li&gt;
          &lt;?
      }
  
  } // end class
  
  $cdog_product_options = new cdog_product_options();
  </code></pre>