-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnm_products.php
67 lines (59 loc) · 1.54 KB
/
nm_products.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
<?php
/**
*
* @link https://www.taifuun.ee
* @since 1.0.0
* @package Nordic_milk_products
*
* @wordpress-plugin
* Plugin Name: Nordic Milk Products
* Plugin URI: https://www.taifuun.ee
* Description: This plugin adds products with various views
* Version: 1.4.0
* Author: Taifuun OÜ
* Author URI: https://www.taifuun.ee
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
* Text Domain: nm_products
* Domain Path: /languages
* GitHub Plugin URI: stentibbing/nm_products
*/
// If this file is called directly, abort.
if (! defined('WPINC')) {
die;
}
/**
* Currently plugin version.
*/
define('NM_PRODUCTS_VERSION', '1.4.0');
/**
* Plugin Activation code
*/
function activate_nm_products()
{
require_once plugin_dir_path(__FILE__) . 'includes/class-nm_products-activator.php';
NM_Products_Activator::activate();
}
/**
* Plugin deactivation code
*/
function deactivate_nm_products()
{
require_once plugin_dir_path(__FILE__) . 'includes/class-nm_products-deactivator.php';
NM_Products_Deactivator::deactivate();
}
register_activation_hook(__FILE__, 'activate_nm_products');
register_deactivation_hook(__FILE__, 'deactivate_nm_products');
/**
* Core for setting up i18n, hooks etc.
*/
require plugin_dir_path(__FILE__) . 'includes/class-nm_products.php';
/**
* Instantiate the plugin
*/
function run_nm_products()
{
$plugin = new NM_Products();
$plugin->run();
}
run_nm_products();