-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplugin.php
52 lines (44 loc) · 1.16 KB
/
plugin.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
<?php
/**
* Plugin Name: Splash by WP Perf
* Plugin URI: https://wp-perf.io
* Description: Plugin Description
* Version: 1.0.0
* Requires at least: @TODO WordPress version requirement
* Requires PHP: @TODO PHP version requirement
* Author: WP Perf
* Author URI: https://wp-perf.io
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: splash
* Domain Path: /public/lang
* Network: @TODO can this be activated network wide?
*/
use WP_Perf\Splash\Plugin as Splash;
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
if ( ! defined( 'WP_PERF_SPLASH_PAGE_VERSION' ) ) {
define( 'WP_PERF_SPLASH_PAGE_VERSION', '1.0.0' );
}
require_once 'autoloader.php';
/**
* Global function providing access to the plugin.
*
* @return Splash
* @since 1.0.0
*
*/
function wpp_splash() {
/**
* @var $wpperf_splash_page Splash
*/
$splash = Splash::get_instance();
return $splash;
}
// Ready, steady, GO!
wpp_splash()->initialize(
__FILE__,
WP_PERF_SPLASH_PAGE_VERSION
);