-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathcrocoblock-wizard.php
58 lines (48 loc) · 1.42 KB
/
crocoblock-wizard.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
<?php
/**
* Plugin Name: Crocoblock Wizard
* Plugin URI: https://crocoblock.com/
* Description: A powerful tool to install Crocoblock package, Jet Plugins, export and import skins quick and easy!
* Version: 1.2.12
* Author: Crocoblock
* Author URI: https://crocoblock.com/
* Text Domain: crocoblock-wizard
* License: GPL-3.0+
* License URI: http://www.gnu.org/licenses/gpl-3.0.txt
* Domain Path: /languages
*/
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die();
}
add_action( 'plugins_loaded', 'crocoblock_wizard_init' );
/**
* Initializes plugin on plugins_loaded hook
*
* @return void
*/
function crocoblock_wizard_init() {
define( 'CB_WIZARD_VERSION', '1.2.12' );
define( 'CB_WIZARD__FILE__', __FILE__ );
define( 'CB_WIZARD_PLUGIN_BASE', plugin_basename( CB_WIZARD__FILE__ ) );
define( 'CB_WIZARD_PATH', plugin_dir_path( CB_WIZARD__FILE__ ) );
define( 'CB_WIZARD_URL', plugins_url( '/', CB_WIZARD__FILE__ ) );
require CB_WIZARD_PATH . 'includes/plugin.php';
}
/**
* Returns Plugin class instance
*
* @return Crocoblock_Wizard\Plugin
*/
function crocoblock_wizard() {
return Crocoblock_Wizard\Plugin::instance();
}
register_activation_hook( __FILE__, 'crocoblock_wizard_activation' );
/**
* Callback for plugin activation hook
*
* @return void
*/
function crocoblock_wizard_activation() {
set_transient( 'crocoblock_wizard_redirect', true, MINUTE_IN_SECONDS );
}