コード例 #1
0
 *
 * License: GNU General Public License v3.0
 * License URI: http://www.gnu.org/licenses/gpl-3.0.html
 *
 * @package     WC-Custom-Product-Tabs-Lite
 * @author      SkyVerge
 * @category    Plugin
 * @copyright   Copyright (c) 2012-2015, SkyVerge, Inc.
 * @license     http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
 */
// Exit if accessed directly
if (!defined('ABSPATH')) {
    exit;
}
// Check if WooCommerce is active and bail if it's not
if (!WooCommerceCustomProductTabsLite::is_woocommerce_active()) {
    return;
}
/**
 * The WooCommerceCustomProductTabsLite global object
 * @name $woocommerce_product_tabs_lite
 * @global WooCommerceCustomProductTabsLite $GLOBALS['woocommerce_product_tabs_lite']
 */
$GLOBALS['woocommerce_product_tabs_lite'] = new WooCommerceCustomProductTabsLite();
class WooCommerceCustomProductTabsLite
{
    private $tab_data = false;
    /** plugin version number */
    const VERSION = "1.3.1";
    /** plugin version name */
    const VERSION_OPTION_NAME = 'woocommerce_custom_product_tabs_lite_db_version';
コード例 #2
0
 /**
  * Main Custom Product Tabs Lite Instance, ensures only one instance is/can be loaded
  *
  * @since 1.4.0
  * @see wc_custom_product_tabs_lite()
  * @return WooCommerceCustomProductTabsLite
  */
 public static function instance()
 {
     if (is_null(self::$instance)) {
         self::$instance = new self();
     }
     return self::$instance;
 }