PluginProbe
WPS Cleaner / trunk
WPS Cleaner vtrunk
trunk 1.0 1.1 1.2 1.3 1.4 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 1.4.7 1.4.8 1.5 1.6 1.6.1 1.6.10 1.6.10.1 1.6.10.2 1.6.11 1.6.2 1.6.3 1.6.4 1.6.5 All 29 releases
wps-cleaner / wps-cleaner.php

wps-cleaner.php in WPS Cleaner trunk, at wps-cleaner.php

49 lines 1.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /*
3 Plugin Name: WPS Cleaner
4 Description: WPS Cleaner permet de nettoyer la base de données et le WordPress.
5 Donate link: https://www.paypal.me/donateWPServeur
6 Author: WPServeur, NicolasKulka, wpformation
7 Author URI: https://wpserveur.net
8 Version: 1.6.11
9 Requires at least: 4.2
10 Tested up to: 7.1
11 Domain Path: languages
12 Text Domain: wps-cleaner
13 License: GPL2
14 */
15
16 // don't load directly
17 if ( ! defined( 'ABSPATH' ) ) {
18 die( '-1' );
19 }
20
21 // Plugin constants
22 define( 'WPS_CLEANER_VERSION', '1.6.11' );
23 define( 'WPS_CLEANER_FOLDER', 'wps-cleaner' );
24 define( 'WPS_CLEANER_BASENAME', plugin_basename( __FILE__ ) );
25 if ( ! defined( 'WPS_PUB_API_URL' ) ) {
26 define( 'WPS_PUB_API_URL', 'https://www.wpserveur.net/wp-json/' );
27 }
28
29 define( 'WPS_CLEANER_URL', plugin_dir_url( __FILE__ ) );
30 define( 'WPS_CLEANER_DIR', plugin_dir_path( __FILE__ ) );
31
32 define( 'WPS_CLEANER_CRON_QTY', 1000 );
33
34 require_once WPS_CLEANER_DIR . 'autoload.php';
35
36 register_activation_hook( __FILE__, array( '\WPS\WPS_Cleaner\Plugin', 'install' ) );
37 register_deactivation_hook( __FILE__, array( '\WPS\WPS_Cleaner\Plugin', 'deactivate' ) );
38 register_uninstall_hook( __FILE__, array( '\WPS\WPS_Cleaner\Plugin', 'uninstall' ) );
39
40 add_action( 'plugins_loaded', 'plugins_loaded_wps_cleaner_plugin' );
41 function plugins_loaded_wps_cleaner_plugin() {
42 \WPS\WPS_Cleaner\DB_Table::get_instance();
43
44 \WPS\WPS_Cleaner\Plugin::get_instance();
45 \WPS\WPS_Cleaner\Index::get_instance();
46
47 load_plugin_textdomain( 'wps-cleaner', false, basename( rtrim( dirname( __FILE__ ), '/' ) ) . '/languages' );
48 }
49