-
Notifications
You must be signed in to change notification settings - Fork 3
/
remove-wordpress-overhead.php
48 lines (40 loc) · 1.34 KB
/
remove-wordpress-overhead.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
<?php
/*
* Plugin Name: Remove Wordpress Overhead
* Version: 1.5.5.2
* Plugin URI: https://github.com/omnisite/WP-Plugin-Remove-Wordpress-Overhead
* Description: Remove overhead from the <head> HTML and disable widgets you don't use
* Author: Omnisite
* Author URI: http://www.omnisite.nl
* Requires at least: 6.0
* Tested up to: 6.2.2
*
* Text Domain: remove-wordpress-overhead
* Domain Path: /lang/
*
* @package WordPress
* @author Omnisite
* @since 1.0.0
*/
if ( ! defined( 'ABSPATH' ) ) exit;
use Remove_Wordpress_Overhead\Remove_Wordpress_Overhead;
use Remove_Wordpress_Overhead\Remove_Wordpress_Overhead_Settings;
// Load plugin class files
require_once( 'includes/class-remove-wordpress-overhead.php' );
require_once( 'includes/class-remove-wordpress-overhead-settings.php' );
// Load plugin libraries
require_once( 'includes/lib/class-remove-wordpress-overhead-admin-api.php' );
/**
* Returns the main instance of Remove_Wordpress_Overhead to prevent the need to use globals.
*
* @since 1.0.0
* @return object Remove_Wordpress_Overhead
*/
function Remove_Wordpress_Overhead () {
$instance = Remove_Wordpress_Overhead::instance( __FILE__, '1.5.5.2', 'rwo_' );
if ( is_null( $instance->settings ) ) {
$instance->settings = Remove_Wordpress_Overhead_Settings::instance( $instance );
}
return $instance;
}
Remove_Wordpress_Overhead();