static function woocommerce_check()
 {
     if (tm_woocommerce_check() && !version_compare(get_option('woocommerce_db_version'), '2.1', '<')) {
         return true;
     }
     return false;
 }
{
    return TM_EPO_UPDATE_Updater::instance();
}
TM_EPO_UPDATER()->init();
/**
 * Plugin health check
 */
function TM_EPO_CHECK()
{
    return TM_EPO_CHECK_base::instance();
}
register_activation_hook(__FILE__, array('TM_EPO_CHECK_base', 'activation_check'));
if (TM_EPO_CHECK()->stop_plugin()) {
    return;
}
if (tm_woocommerce_check()) {
    /**
     * Load plugin textdomain.
     */
    function tm_epo_load_textdomain()
    {
        load_plugin_textdomain(TM_EPO_TRANSLATION, false, dirname(plugin_basename(__FILE__)) . '/languages/');
    }
    add_action('plugins_loaded', 'tm_epo_load_textdomain');
    /**
     *  Register post types
     */
    function tm_epo_register_post_type()
    {
        register_post_type(TM_EPO_LOCAL_POST_TYPE, array('labels' => array('name' => _x('TM Extra Product Options', 'post type general name', TM_EPO_TRANSLATION)), 'publicly_queryable' => false, 'exclude_from_search' => true, 'rewrite' => false, 'show_in_nav_menus' => false, 'public' => false, 'hierarchical' => false, 'supports' => false));
        register_post_type(TM_EPO_GLOBAL_POST_TYPE, array('labels' => array('name' => __('TM Global Forms', TM_EPO_TRANSLATION), 'singular_name' => __('TM Global Form', TM_EPO_TRANSLATION), 'menu_name' => _x('TM Global Product Options', 'post type general name', TM_EPO_TRANSLATION), 'add_new' => __('Add Global Form', TM_EPO_TRANSLATION), 'add_new_item' => __('Add New Global Form', TM_EPO_TRANSLATION), 'edit' => __('Edit', TM_EPO_TRANSLATION), 'edit_item' => __('Edit Global Form', TM_EPO_TRANSLATION), 'new_item' => __('New Global Form', TM_EPO_TRANSLATION), 'view' => __('View Global Form', TM_EPO_TRANSLATION), 'view_item' => __('View Global Form', TM_EPO_TRANSLATION), 'search_items' => __('Search Global Form', TM_EPO_TRANSLATION), 'not_found' => __('No Global Form found', TM_EPO_TRANSLATION), 'not_found_in_trash' => __('No Global Form found in trash', TM_EPO_TRANSLATION), 'parent' => __('Parent Global Form', TM_EPO_TRANSLATION)), 'description' => __('This is where you can add new products to your store.', 'woocommerce'), 'public' => false, 'show_ui' => false, 'capability_type' => 'product', 'map_meta_cap' => true, 'publicly_queryable' => false, 'exclude_from_search' => true, 'hierarchical' => false, 'rewrite' => false, 'query_var' => false, 'supports' => array('title', 'excerpt'), 'has_archive' => false, 'show_in_nav_menus' => false));