PluginProbe
Spreadconnect / trunk
Spreadconnect vtrunk
trunk 2.1.6
wc-spod / wc-spod.php

wc-spod.php in Spreadconnect trunk, at wc-spod.php

104 lines 3.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * @link http://www.spreadshop.com/spreadconnect?affiliateID=12890
4 * @since 1.0.0
5 * @package wc-spod
6 *
7 * @wordpress-plugin
8 * Plugin Name: Spreadconnect
9 * Plugin URI: http://www.spreadshop.com/spreadconnect?affiliateID=12890
10 * Description: Connect your WooCommerce Shop to the leading provider of whitelabel print-on-demand services. Get an automatic product, order and order status synchronisation and a seamless integration into your WooCommerce setup ready within minutes.
11 * Version: 2.1.6
12 * Author: Spreadconnect
13 * Author URI: http://www.spreadshop.com/spreadconnect?affiliateID=12890
14 * License: GPL-2.0+
15 * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
16 * Text Domain: wc-spod
17 * Domain Path: /languages
18 *
19 * WC requires at least: 4.7
20 * WC tested up to: 8.2.2
21 */
22
23 // If this file is called directly, abort.
24 if ( ! defined( 'WPINC' ) ) {
25 die;
26 }
27
28 /**
29 *
30 * Mark HPOS compatibility
31 * @since 2.1.2
32 */
33 add_action( 'before_woocommerce_init', function() {
34 if ( class_exists( \Automattic\WooCommerce\Utilities\FeaturesUtil::class ) ) {
35 \Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'custom_order_tables', __FILE__, true );
36 }
37 } );
38
39 /**
40 * Currently plugin version.
41 */
42 define( 'SPOD_POD_VERSION', '2.1.6' );
43 define( 'MIN_WORDPRESS_VERSION_REQUIRED', 4.8 );
44 define( 'MIN_WOOCOMMERCE_VERSION_REQUIRED', 4.7);
45 define( 'MIN_PHP_VERSION_REQUIRED', 5.6);
46
47 /**
48 * Temporary table
49 */
50 global $wpdb;
51 define('SPOD_SHOP_IMPORT_IMAGES', $wpdb->prefix.'spod_shop_import_images');
52 define('SPOD_SHOP_IMPORT_PRODUCTS', $wpdb->prefix.'spod_shop_import_products');
53 define('SPOD_SHOP_IMPORT_LOGS', $wpdb->prefix.'spod_shop_import_logs');
54
55 /**
56 * The code that runs during plugin activation.
57 */
58 function spodpod_activate_spod_plugin() {
59 require_once plugin_dir_path( __FILE__ ) . 'classes/SpodPodActivator.php';
60 SpodPodActivator::activate();
61 }
62
63 /**
64 * The code that runs during plugin deactivation.
65 */
66 function spodpod_deactivate_spod_plugin() {
67 require_once plugin_dir_path( __FILE__ ) . 'classes/SpodPodDeactivator.php';
68 SpodPodDeactivator::deactivate();
69 }
70
71 register_activation_hook( __FILE__, 'spodpod_activate_spod_plugin' );
72 register_deactivation_hook( __FILE__, 'spodpod_deactivate_spod_plugin' );
73
74 /**
75 * plugin update check.
76 */
77 function spodpod_update_spod_plugin() {
78 require_once plugin_dir_path( __FILE__ ) . 'classes/SpodPodUpdater.php';
79 SpodPodUpdater::update120();
80 SpodPodUpdater::update210();
81 }
82 add_action('plugins_loaded', 'spodpod_update_spod_plugin');
83
84
85 /**
86 * The core plugin class that is used to define internationalization,
87 * admin-specific hooks, and public-facing site hooks.
88 */
89 require plugin_dir_path( __FILE__ ) . 'classes/SpodPodPlugin.php';
90 require plugin_dir_path( __FILE__ ) . 'cron.php';
91
92 /**
93 * Begins execution of the plugin.
94 *
95 * @since 1.0.0
96 */
97 function spodpod_run_spod_plugin() {
98
99 $plugin = new SpodPodPlugin();
100 $plugin->run();
101
102 }
103 spodpod_run_spod_plugin();
104