-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproduct-tabs-for-woocommerce.php
64 lines (57 loc) · 1.68 KB
/
product-tabs-for-woocommerce.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<?php
/*
Plugin Name: Additional Custom Product Tabs for WooCommerce
Plugin URI: https://wpfactory.com/item/product-tabs-for-woocommerce-plugin/
Description: Manage product tabs in WooCommerce. Beautifully.
Version: 1.7.0
Author: WPFactory
Author URI: https://wpfactory.com
Text Domain: product-tabs-for-woocommerce
Domain Path: /langs
WC tested up to: 9.6
Requires Plugins: woocommerce
License: GNU General Public License v3.0
License URI: http://www.gnu.org/licenses/gpl-3.0.html
*/
defined( 'ABSPATH' ) || exit;
if ( 'product-tabs-for-woocommerce.php' === basename( __FILE__ ) ) {
/**
* Check if Pro plugin version is activated.
*
* @version 1.6.0
* @since 1.5.0
*/
$plugin = 'product-tabs-for-woocommerce-pro/product-tabs-for-woocommerce-pro.php';
if (
in_array(
$plugin,
(array) get_option( 'active_plugins', array() ),
true
) ||
(
is_multisite() &&
array_key_exists(
$plugin,
(array) get_site_option( 'active_sitewide_plugins', array() )
)
)
) {
defined( 'ALG_WC_PRODUCT_TABS_FILE_FREE' ) || define( 'ALG_WC_PRODUCT_TABS_FILE_FREE', __FILE__ );
return;
}
}
defined( 'ALG_WC_PRODUCT_TABS_VERSION' ) || define( 'ALG_WC_PRODUCT_TABS_VERSION', '1.7.0' );
defined( 'ALG_WC_PRODUCT_TABS_FILE' ) || define( 'ALG_WC_PRODUCT_TABS_FILE', __FILE__ );
require_once plugin_dir_path( __FILE__ ) . 'includes/class-alg-wc-product-tabs.php';
if ( ! function_exists( 'alg_wc_product_tabs' ) ) {
/**
* Returns the main instance of Alg_WC_Product_Tabs to prevent the need to use globals.
*
* @version 1.3.0
* @since 1.0.0
*/
function alg_wc_product_tabs() {
return Alg_WC_Product_Tabs::instance();
}
}
add_action( 'plugins_loaded', 'alg_wc_product_tabs' );