PluginProbe
SweepPress: Website Cleanup and Optimization / 1.2
SweepPress: Website Cleanup and Optimization v1.2
trunk 1.1 1.2 1.3 1.4 1.4.1 1.5 1.6 1.7 1.8 2.0 2.1 2.1.1 2.2 2.3 2.3.1 2.4 2.4.1 2.4.2 2.5 2.6 3.0 3.1 3.1.1 3.2 All 39 releases
sweeppress / sweeppress.php

sweeppress.php in SweepPress: Website Cleanup and Optimization 1.2, at sweeppress.php

61 lines 2.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /*
4 Plugin Name: SweepPress
5 Plugin URI: https://sweep.press/
6 Description: Remove various old, unused or obsolete data from the database, optimize the database for best performance.
7 Author: Milan Petrovic
8 Author URI: https://www.dev4press.com/
9 Text Domain: sweeppress
10 Version: 1.2
11 Requires at least: 5.3
12 Tested up to: 5.9
13 Requires PHP: 7.2
14 License: GPLv3 or later
15 License URI: https://www.gnu.org/licenses/gpl-3.0.html
16
17 == Copyright ==
18 Copyright 2008 - 2022 Milan Petrovic (email: support@dev4press.com)
19
20 This program is free software: you can redistribute it and/or modify
21 it under the terms of the GNU General Public License as published by
22 the Free Software Foundation, either version 3 of the License, or
23 (at your option) any later version.
24
25 This program is distributed in the hope that it will be useful,
26 but WITHOUT ANY WARRANTY; without even the implied warranty of
27 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28 GNU General Public License for more details.
29
30 You should have received a copy of the GNU General Public License
31 along with this program. If not, see <http://www.gnu.org/licenses/>
32 */
33
34 use Dev4Press\v37\WordPress;
35
36 $sweeppress_dirname_basic = dirname( __FILE__ ) . '/';
37 $sweeppress_urlname_basic = plugins_url( '/', __FILE__ );
38
39 define( 'SWEEPPRESS_PATH', $sweeppress_dirname_basic );
40 define( 'SWEEPPRESS_URL', $sweeppress_urlname_basic );
41 define( 'SWEEPPRESS_D4PLIB_PATH', $sweeppress_dirname_basic . 'd4plib/' );
42 define( 'SWEEPPRESS_D4PLIB_URL', $sweeppress_urlname_basic . 'd4plib/' );
43
44 if ( ! defined( 'SWEEPPRESS_SIMULATION' ) ) {
45 define( 'SWEEPPRESS_SIMULATION', false );
46 }
47
48 require_once( SWEEPPRESS_D4PLIB_PATH . 'core.php' );
49
50 require_once( SWEEPPRESS_PATH . 'core/autoload.php' );
51 require_once( SWEEPPRESS_PATH . 'core/bridge.php' );
52 require_once( SWEEPPRESS_PATH . 'core/functions.php' );
53
54 sweeppress();
55 sweeppress_settings();
56
57 if ( WordPress::instance()->is_admin() ) {
58 sweeppress_ajax();
59 sweeppress_admin();
60 }
61