-
Notifications
You must be signed in to change notification settings - Fork 0
/
pixelgrade-assistant.php
59 lines (50 loc) · 2.29 KB
/
pixelgrade-assistant.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
<?php
/**
* Plugin Name: Pixelgrade Assistant
* Plugin URI: https://github.com/pixelgrade/pixelgrade-assistant
* Description: We care about giving you the best experience with your free Pixelgrade theme.
* Version: 1.4.0
* Author: Pixelgrade
* Author URI: https://pixelgrade.com
* License: GPL-3.0
* License URI: https://www.gnu.org/licenses/gpl-3.0.en.html
* Text Domain: pixelgrade_assistant
* Domain Path: /languages/
*/
// If this file is called directly, abort.
if ( ! defined( 'ABSPATH' ) ) {
die;
}
define( 'PIXELGRADE_ASSISTANT__PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
define( 'PIXELGRADE_ASSISTANT__PLUGIN_FILE', __FILE__ );
// Define our constants or make sure they have a value
defined( 'PIXELGRADE_ASSISTANT__API_BASE' ) || define( 'PIXELGRADE_ASSISTANT__API_BASE', 'https://pixelgrade.com/' );
defined( 'PIXELGRADE_ASSISTANT__API_BASE_DOMAIN' ) || define( 'PIXELGRADE_ASSISTANT__API_BASE_DOMAIN', 'pixelgrade.com' );
defined( 'PIXELGRADE_ASSISTANT__SHOP_BASE' ) || define( 'PIXELGRADE_ASSISTANT__SHOP_BASE', 'https://pixelgrade.com/' );
defined( 'PIXELGRADE_ASSISTANT__SHOP_BASE_DOMAIN' ) || define( 'PIXELGRADE_ASSISTANT__SHOP_BASE_DOMAIN', 'pixelgrade.com' );
defined( 'PIXELGRADE_ASSISTANT__DEV_MODE' ) || define( 'PIXELGRADE_ASSISTANT__DEV_MODE', false );
require_once plugin_dir_path( __FILE__ ) . 'vendor/autoload.php';
// Include functions that might assist when in dev mode.
require_once plugin_dir_path( __FILE__ ) . 'includes/integrations/devmode.php';
/**
* Returns the main instance of PixelgradeAssistant to prevent the need to use globals.
*
* @return PixelgradeAssistant The PixelgradeAssistant instance
*/
function PixelgradeAssistant() {
/**
* The core plugin class that is used to define internationalization,
* admin-specific hooks, and public-facing site hooks.
*/
require_once plugin_dir_path( __FILE__ ) . 'includes/class-pixelgrade_assistant.php';
$instance = PixelgradeAssistant::instance( __FILE__, '1.4.0' );
return $instance;
}
/**
* Begins execution of the plugin.
*
* Since everything within the plugin is registered via hooks,
* then kicking off the plugin from this point in the file does
* not affect the page life cycle.
*/
PixelgradeAssistant();