-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy paththemegrill-demo-importer.php
43 lines (38 loc) · 1.11 KB
/
themegrill-demo-importer.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
<?php
/**
* Plugin Name: ThemeGrill Demo Importer
* Plugin URI: https://themegrill.com/demo-importer/
* Description: Import ThemeGrill official themes demo content, widgets and theme settings with just one click.
* Version: 1.9.9
* Author: ThemeGrill
* Author URI: https://themegrill.com
* License: GPLv3 or later
* Text Domain: themegrill-demo-importer
* Domain Path: /languages/
*
* @package ThemeGrill_Demo_Importer
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
// Define TGDM_PLUGIN_FILE.
if ( ! defined( 'TGDM_PLUGIN_FILE' ) ) {
define( 'TGDM_PLUGIN_FILE', __FILE__ );
}
// Include the main ThemeGrill Demo Importer class.
if ( ! class_exists( 'ThemeGrill_Demo_Importer' ) ) {
include_once __DIR__ . '/includes/class-themegrill-demo-importer.php';
}
/**
* Main instance of ThemeGrill Demo importer.
*
* Returns the main instance of TGDM to prevent the need to use globals.
*
* @since 1.3.4
* @return ThemeGrill_Demo_Importer
*/
function tgdm() {
return ThemeGrill_Demo_Importer::instance();
}
// Global for backwards compatibility.
$GLOBALS['themegrill-demo-importer'] = tgdm();