PluginProbe
SweepPress: Website Cleanup and Optimization / 2.4
SweepPress: Website Cleanup and Optimization v2.4
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 2.4, at sweeppress.php

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