PluginProbe
WP Maintenance / 6.1.9.8
WP Maintenance v6.1.9.8
trunk 6.0.1 6.0.2 6.0.3 6.0.4 6.0.5 6.0.6 6.0.7 6.0.8 6.0.9 6.1.0 6.1.1 6.1.10.0 6.1.10.1 6.1.2 6.1.3 6.1.4 6.1.5 6.1.6 6.1.7 6.1.8 6.1.9 6.1.9.1 6.1.9.2 6.1.9.3 All 31 releases
wp-maintenance / wp-maintenance.php

wp-maintenance.php in WP Maintenance 6.1.9.8, at wp-maintenance.php

61 lines 2.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /*
3 * Plugin Name: WP Maintenance
4 * Plugin URI: https://fr.wordpress.org/plugins/wp-maintenance/
5 * Description: The WP Maintenance plugin allows you to put your website on the waiting time for you to do maintenance or launch your website. Personalize this page with picture, countdown...
6 * Author: Florent Maillefaud
7 * Author URI: https://madeby.restezconnectes.fr
8 * Version: 6.1.9.8
9 * Text Domain: wp-maintenance
10 * Domain Path: /languages/
11 */
12
13 /* Copyright 2007-2025 Florent Maillefaud (email: contact at restezconnectes.fr)
14
15 This program is free software; you can redistribute it and/or modify
16 it under the terms of the GNU General Public License as published by
17 the Free Software Foundation; either version 2 of the License, or
18 (at your option) any later version.
19
20 This program is distributed in the hope that it will be useful,
21 but WITHOUT ANY WARRANTY; without even the implied warranty of
22 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 GNU General Public License for more details.
24
25 You should have received a copy of the GNU General Public License
26 along with this program; if not, write to the Free Software
27 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
28 */
29
30 defined( 'ABSPATH' )
31 or die( 'No direct load ! ' );
32
33 define( 'WPM_DIR', plugin_dir_path( __FILE__ ) );
34 define( 'WPM_URL', plugins_url('/', __FILE__) );
35 define( 'WPM_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
36 define( 'WPM_PLUGIN_URL', plugins_url().'/'.strtolower('wp-maintenance').'/');
37 define( 'WPM_ICONS_URL', plugins_url().'/'.strtolower('wp-maintenance').'/socialicons/');
38 define( 'WPM_ADMIN_URL', admin_url().'admin.php?page=wp-maintenance'); //we assume the admin url is absolute with at least one querystring
39
40 if( !defined( 'WPM_VERSION' )) { define( 'WPM_VERSION', '6.1.9.8' ); }
41
42 require WPM_DIR . 'classes/wp-maintenance.php';
43 require WPM_DIR . 'classes/countdown.php';
44 require WPM_DIR . 'includes/functions.php';
45 require WPM_DIR . 'includes/shortcodes.php';
46
47 add_action( 'plugins_loaded', '_wpm_load' );
48 function _wpm_load() {
49 $wp_maintenance = new WP_maintenance();
50 $wp_maintenance->__construct();
51 }
52
53 // Enable localization
54 add_action( 'init', '_wpm_load_translation' );
55 function _wpm_load_translation() {
56 load_plugin_textdomain( 'wp-maintenance', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
57 }
58
59 register_activation_hook( __FILE__, array( 'WP_maintenance', 'wpm_dashboard_install' ) );
60 register_deactivation_hook( __FILE__, array( 'WP_maintenance', 'wpm_dashboard_remove' ) );
61 register_uninstall_hook( __FILE__, array( 'WP_maintenance', 'wpm_dashboard_remove' ) );