-
Notifications
You must be signed in to change notification settings - Fork 2
/
star-cloudprnt-for-woocommerce.php
28 lines (24 loc) · 1.13 KB
/
star-cloudprnt-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
<?php
/**
* Plugin Name: Star CloudPRNT for WooCommerce
* Plugin URI: http://www.star-emea.com
* Description: Star CloudPRNT for WooCommerce enables cloud printing technology with your Star Receipt printer.
* Version: 1.0.3
* Author: fmahmood
* Author URI: http://www.star-emea.com/support
* Requires at least: 4.7.0
* Tested up to: 4.9.6
*/
// Block direct access to this script
if (!defined( 'ABSPATH' )) exit;
// Include printer files
if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') include_once(plugin_dir_path(__FILE__).'cloudprnt\\printer.inc.php');
else include_once(plugin_dir_path(__FILE__).'cloudprnt/printer.inc.php');
include_once(plugin_dir_path(__FILE__).star_cloudprnt_get_os_path('cloudprnt/printer_star_line.inc.php'));
// Include plugin page settings and woo commerce hooks
include_once(plugin_dir_path(__FILE__).star_cloudprnt_get_os_path('create-settings.php'));
include_once(plugin_dir_path(__FILE__).star_cloudprnt_get_os_path('order-handler.php'));
// Run page setup and woo commerce hooks
star_cloudprnt_create_settings_page();
star_cloudprnt_setup_order_handler();
?>