forked from spinupwp/spinupwp-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
spinupwp.php
51 lines (44 loc) · 1.24 KB
/
spinupwp.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
<?php
/*
Plugin Name: SpinupWP
Plugin URI: https://spinupwp.com
Description: SpinupWP helper plugin.
Author: SpinupWP
Version: 1.6
Network: True
Text Domain: spinupwp
Requires PHP: 7.1
Requires WP: 4.7
// Copyright (c) 2019 SpinupWP. All rights reserved.
//
// Released under the GPL license
// http://www.opensource.org/licenses/gpl-license.php
//
// **********************************************************************
// This program is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
// **********************************************************************
*/
// Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
if ( file_exists( __DIR__ . '/vendor/autoload.php' ) ) {
require_once __DIR__ . '/vendor/autoload.php';
}
/**
* The main SpinupWP function.
*
* @return \SpinupWp\Plugin
*/
function spinupwp()
{
if ( isset( $GLOBALS['spinupwp'] ) && $GLOBALS['spinupwp'] instanceof \SpinupWp\Plugin ) {
return $GLOBALS['spinupwp'];
}
$GLOBALS['spinupwp'] = new \SpinupWp\Plugin( __FILE__ );
$GLOBALS['spinupwp']->run();
return $GLOBALS['spinupwp'];
}
spinupwp();