PluginProbe
SpinupWP / 1.0.3
SpinupWP v1.0.3
trunk 1.0 1.0.1 1.0.2 1.0.3 1.1 1.1.1 1.1.2 1.2 1.3 1.4 1.4.1 1.4.2 1.5 1.5.1 1.6 1.7 1.7.1 1.8.0 1.9.0 1.9.1
spinupwp / spinupwp.php

spinupwp.php in SpinupWP 1.0.3, at spinupwp.php

52 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 Plugin Name: SpinupWP
4 Plugin URI: https://spinupwp.com
5 Description: SpinupWP helper plugin.
6 Author: Delicious Brains
7 Version: 1.0.3
8 Network: True
9 Text Domain: spinupwp
10 Requires PHP: 7.1
11 Requires WP: 4.7
12
13 // Copyright (c) 2019 Delicious Brains. All rights reserved.
14 //
15 // Released under the GPL license
16 // http://www.opensource.org/licenses/gpl-license.php
17 //
18 // **********************************************************************
19 // This program is distributed in the hope that it will be useful, but
20 // WITHOUT ANY WARRANTY; without even the implied warranty of
21 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
22 // **********************************************************************
23 */
24
25 // Exit if accessed directly
26 if ( ! defined( 'ABSPATH' ) ) {
27 exit;
28 }
29
30 if ( file_exists( __DIR__ . '/vendor/autoload.php' ) ) {
31 require_once __DIR__ . '/vendor/autoload.php';
32 }
33
34 /**
35 * The main SpinupWP function.
36 *
37 * @return \DeliciousBrains\SpinupWp\Plugin
38 */
39 function spinupwp()
40 {
41 if ( isset( $GLOBALS['spinupwp'] ) && $GLOBALS['spinupwp'] instanceof \DeliciousBrains\SpinupWp\Plugin ) {
42 return $GLOBALS['spinupwp'];
43 }
44
45 $GLOBALS['spinupwp'] = new \DeliciousBrains\SpinupWp\Plugin( __FILE__ );
46 $GLOBALS['spinupwp']->run();
47
48 return $GLOBALS['spinupwp'];
49 }
50
51 spinupwp();
52