-
Notifications
You must be signed in to change notification settings - Fork 12
/
wc-serial-numbers.php
72 lines (65 loc) · 2.29 KB
/
wc-serial-numbers.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
65
66
67
68
69
70
71
72
<?php
/**
* Plugin Name: WC Serial Numbers
* Plugin URI: https://pluginever.com/plugins/wocommerce-serial-numbers-pro/
* Description: Sell and manage license keys/ serial numbers/ secret keys easily within your WooCommerce store.
* Version: 2.1.1
* Requires at least: 5.0
* Requires PHP: 7.4
* Author: PluginEver
* Author URI: https://pluginever.com
* License: GPL v2 or later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: wc-serial-numbers
* Domain Path: /languages
* Tested up to: 6.7
* WC requires at least: 3.0.0
* WC tested up to: 9.4
*
* @package WooCommerceSerialNumbers
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
use WooCommerceSerialNumbers\Plugin;
// Don't call the file directly.
defined( 'ABSPATH' ) || exit();
// Require the autoloader.
require_once __DIR__ . '/vendor/autoload.php';
/**
* Get the plugin instance.
*
* @since 1.0.0
* @return Plugin
*/
function WCSN() { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.FunctionNameInvalid
$data = array(
'file' => __FILE__,
'settings_url' => admin_url( 'admin.php?page=wc-serial-numbers-settings' ),
'support_url' => 'https://pluginever.com/support/',
'docs_url' => 'https://pluginever.com/docs/wocommerce-serial-numbers/',
'premium_url' => 'https://pluginever.com/plugins/woocommerce-serial-numbers-pro/',
'premium_basename' => 'wc-serial-numbers-pro',
'review_url' => 'https://wordpress.org/support/plugin/wc-serial-numbers/reviews/?filter=5#new-post',
);
return Plugin::create( $data );
}
/**
* Alias of WCSN().
*
* @since 1.5.6
* @return Plugin
* @deprecated 1.5.6
*/
function wc_serial_numbers() {
return WCSN();
}
// Initialize the plugin.
WCSN();