-
Notifications
You must be signed in to change notification settings - Fork 4
/
wp-performance.php
42 lines (37 loc) · 1.69 KB
/
wp-performance.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
<?php namespace WPP;
/**
* Plugin Name: WP Performance
* Plugin URI: https://www.wp-performance.com
* Description: WP Performance Optimizer
* Version: 1.1.8.3
* Author: Ante Laca
* Author URI: https://www.antelaca.xyz
* Licence: GPLv2
* Text Domain: wpp
* Domain Path: /languages
*/
defined( 'ABSPATH' ) or exit;
// WP Performance
define( 'WPP_VERSION' , '1.1.8.3' );
define( 'WPP_SELF' , __FILE__ );
define( 'WPP_URI' , plugin_dir_url( __FILE__ ) );
define( 'WPP_DIR' , plugin_dir_path( __FILE__ ) );
define( 'WPP_ASSET_DIR' , trailingslashit( WPP_DIR ) . 'assets/' );
define( 'WPP_ASSET_URL' , trailingslashit( WPP_URI ) . 'assets/' );
define( 'WPP_CLASSES_DIR' , trailingslashit( WPP_DIR ) . 'includes/classes/' );
define( 'WPP_ADDONS_DIR' , trailingslashit( WPP_DIR ) . 'includes/addons/' );
define( 'WPP_ADDONS_URL' , trailingslashit( WPP_URI ) . 'includes/addons/' );
define( 'WPP_FUNCTIONS_DIR' , trailingslashit( WPP_DIR ) . 'includes/functions/' );
define( 'WPP_ADMIN_DIR' , trailingslashit( WPP_DIR ) . 'includes/admin/' );
define( 'WPP_DATA_DIR' , trailingslashit( WPP_DIR ) . 'includes/data/' );
define( 'WPP_CACHE_DIR' , trailingslashit( WP_CONTENT_DIR ) . 'cache/wpp-cache/' );
define( 'WPP_CACHE_URL' , trailingslashit( WP_CONTENT_URL ) . 'cache/wpp-cache/' );
// Define plugin name and plugin admin url
define( 'WPP_PLUGIN_NAME' , 'WP Performance' );
define( 'WPP_PLUGIN_ADMIN_URL', sanitize_title( WPP_PLUGIN_NAME ) );
require WPP_CLASSES_DIR . 'wpp.php';
// WP CLI
if ( defined( 'WP_CLI' ) && WP_CLI ) {
require WPP_CLASSES_DIR . 'cli.php';
}
WP_Performance::instance()->run();