-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild-mode.php
More file actions
41 lines (37 loc) · 1.12 KB
/
build-mode.php
File metadata and controls
41 lines (37 loc) · 1.12 KB
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
<?php
/**
* Plugin Name: Build Mode
* Plugin URI: https://themeist.com/plugins/build-mode/#utm_source=wp-plugin&utm_medium=plugins-page&utm_campaign=build-mode
* Description: Maintenance Mode Without the Mess – Pick a page, and Build Mode takes care of the rest.
* Version: 1.0.0
* Requires at least: 6.0
* Requires PHP: 7.4
* Author: Harish Chouhan
* Author URI: https://harishchouhan.com/
* Author Email: me@harishchouhan.com
* Text Domain: build-mode
* License: GPL-3.0
* License URI: http://www.gnu.org/licenses/gpl-3.0.txt
* Domain Path: /languages
*
* @package BuildMode
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
// Load the main plugin class.
require_once __DIR__ . '/includes/class-plugin.php';
add_action(
'plugins_loaded',
function () {
// Start the plugin.
Themeist_Build_Mode_Plugin::instance();
}
);
/**
* Clean up when plugin is deleted.
*/
function themeist_build_mode_uninstall() {
delete_option( 'themeist_build_mode_settings' );
}
register_uninstall_hook( __FILE__, 'themeist_build_mode_uninstall' );