PluginProbe
FastDup – Fastest WordPress Migration & Duplicator / 2.6
FastDup – Fastest WordPress Migration & Duplicator v2.6
2.7.3 trunk 2.2.1 2.2.2 2.3 2.4 2.5 2.6 2.7.1 2.7.2
fastdup / fastdup.php

fastdup.php in FastDup – Fastest WordPress Migration & Duplicator 2.6, at fastdup.php

56 lines 1.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * Plugin Name: FastDup
5 * Plugin URI: https://ninjateam.gitbook.io/fastdup/
6 * Description: WordPress Fastest Duplicator and Migration
7 * Version: 2.6
8 * Author: Ninja Team
9 * Author URI: https://ninjateam.org/
10 * License: GPLv2 or later
11 * License URI: http://www.gnu.org/licenses/gpl-2.0.html
12 * Text Domain: fastdup
13 * Domain Path: /languages
14 */
15
16 /**
17 * MAKE SURE WE DON'T EXPOSE ANY INFO IF CALLED DIRECTLY
18 */
19 if (!function_exists('add_action')) {
20 die;
21 }
22
23 define('FAST_DUP_BASE_NAME', plugin_basename(__FILE__));
24
25 /**
26 * AUTOLOADER
27 */
28 if (file_exists(dirname(__FILE__) . '/vendor/autoload.php')) {
29 require_once dirname(__FILE__) . '/vendor/autoload.php';
30 }
31
32 /**
33 * DEFINE
34 */
35 if (file_exists(dirname(__FILE__) . '/define.php')) {
36 require_once dirname(__FILE__) . '/define.php';
37 }
38
39 /**
40 * REGISTER ACTIVATION AND DEACTIVATION HOOKS
41 */
42 register_activation_hook(__FILE__, array('NJT\\FastDup\\Plugin', 'activate'));
43 register_deactivation_hook(__FILE__, array('NJT\\FastDup\\Plugin', 'deactivate'));
44
45 /**
46 * INITIALIZE PLUGIN
47 */
48 function njt_fastdup_init()
49 {
50 $njt_fastdup = NJT\FastDup\Plugin::get_instance();
51 $njt_fastdup_admin = NJT\FastDup\Admin::get_instance();
52 $njt_fastdup_api = NJT\FastDup\Endpoint::get_instance();
53 }
54
55 add_action('plugins_loaded', 'njt_fastdup_init');
56