-
Notifications
You must be signed in to change notification settings - Fork 23
/
wp-sweep.php
57 lines (51 loc) · 1.79 KB
/
wp-sweep.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
53
54
55
56
57
<?php
/**
* WP-Sweep
*
* @package wp-sweep
*
* @wordpress-plugin
* Plugin Name: WP-Sweep
* Plugin URI: https://lesterchan.net/portfolio/programming/php/
* Description: WP-Sweep allows you to clean up unused, orphaned and duplicated data in your WordPress. It cleans up revisions, auto drafts, unapproved comments, spam comments, trashed comments, orphan post meta, orphan comment meta, orphan user meta, orphan term relationships, unused terms, duplicated post meta, duplicated comment meta, duplicated user meta and transient options. It also optimizes your database tables.
* Version: 1.1.8
* Author: Lester 'GaMerZ' Chan
* Author URI: https://lesterchan.net
* Text Domain: wp-sweep
* License: GPL2
*
* Copyright 2024 Lester Chan (email : [email protected])
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License, version 2, as
* published by the Free Software Foundation.
*
* 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. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
/**
* WP-Sweep version
*
* @since 1.0.0
*/
define( 'WP_SWEEP_VERSION', '1.1.8' );
/**
* WP-Sweep main file
*/
define( 'WP_SWEEP_MAIN_FILE', __FILE__ );
require __DIR__ . '/inc/class-wpsweep.php';
require __DIR__ . '/inc/class-wpsweep-api.php';
/**
* WP Rest API
*/
new WPSweep_Api();
/**
* Init WP-Sweep
*/
WPSweep::get_instance();